Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if postArray[indexPath.item].media[0].imageURLString != nil { //its an image
  2. print("display image")
  3.  
  4. var imageView = UIImageView(image: postArray[indexPath.item].media[0].imageURLString!)
  5. imageView.frame = CGRect(x: 0, y: 0, width: 126, height: 203)//cell.frame
  6. cell.imageOrVideoView//Here I need to add image
  7. //.addSubview(imageView)//Here I would usualy add a UIImage to subview
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement