Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if postArray[indexPath.item].media[0].imageURLString != nil { //its an image
- print("display image")
- var imageView = UIImageView(image: postArray[indexPath.item].media[0].imageURLString!)
- imageView.frame = CGRect(x: 0, y: 0, width: 126, height: 203)//cell.frame
- cell.imageOrVideoView//Here I need to add image
- //.addSubview(imageView)//Here I would usualy add a UIImage to subview
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement