SHARE
TWEET

Untitled

a guest Aug 20th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if let data = data, let imge1 = UIImage(data: data) {
  2.      
  3. let storage = Storage.storage()
  4.     let imageReference = storage.reference(withPath: "img/betos.png")
  5.     imageReference.getData(maxSize: 1 * 1024 * 1024) { data, error in
  6.         if let error = error {
  7.             print("Could not retrieve profile image: (error.localizedDescription)")
  8.             return
  9.         }
  10.  
  11.         if let data = data, let imge1 = UIImage(data: data) {
  12.             //self.profileButton.setImage(profileImage, for: .normal)
  13.             print("success")
  14.             logoImages.append(imge1)
  15.         }
  16.     }
  17.      
  18. let cellView = UIImageView()
  19.             cellView.image =  logoImages.first
  20.             cellView.frame = CGRect(x:50, y: 50, width: 50, height: 50)
  21.             view.addSubview(cellView)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top