I have a UITableView with a UITableViewCell with a textview and imageview inside it
In swift file I have defined
class NotificationCell: UITableViewCell {
@IBOutlet weak var notificationAvatarImage: UIImageView!
@IBOutlet weak var notificationText: UITextView!
override func awakeFromNib() {
notificationAvatarImage.clipsToBounds = true
notificationAvatarImage.contentMode = .scaleAspectFill
}
}
I am unable to connect the imageView & textview in storyboard to IBOutlet notificationAvatarImage ... in NotificationCell. How do I do this?
Iam loading the table as
guard let notificationCell = tableView.dequeueReusableCell(withIdentifier: "Cell") as? NotificationCell else {
fatalError("Error getting cell")
}