I have array of posts in tableView and there are posts have an image and another no

I have an array of posts, there are posts have an image and there have not, how I configure that in tableViewCell

 

my cell is:

 

import UIKit

class NotesCell: UITableViewCell {
    @IBOutlet weak var contentNote: UILabel!
    @IBOutlet weak var dateOfNote: UILabel!
    @IBOutlet weak var imageNote: UIImageView! 
}

Powered by WPeMatico

You may also like...

Comments are closed.