Почему я получаю сообщение об ошибке «Значение типа« UIImageView »не имеет члена loadImageUsingCacheWithUrlString '» для строки:
self.profileImageView.loadImageUsingCacheWithUrlString (profileImageUrl)
fileprivate func setupNameAndProfileImage() {
if let id = message?.chatPartnerId() {
let ref = Database.database().reference().child("users").child(id)
ref.observeSingleEvent(of: .value, with: { (snapshot) in
if let dictionary = snapshot.value as? [String: AnyObject] {
self.textLabel?.text = dictionary["name"] as? String
if let profileImageUrl = dictionary["profileImageUrl"] as? String {
self.profileImageView.loadImageUsingCacheWithUrlString(profileImageUrl)
Значение типа 'UIImageView' не имеет члена 'loadImageUsingCacheWithUrlString'