May Phyu
May Phyu

Reputation: 905

Label Text cannot connect IBOutlet in Table View

I put one label text in my Table View row. Then Ctrl dragging to the ViewController.swift but error occurs. How to solve this problem? My Xcode version is 7.3.

enter image description here

Upvotes: 1

Views: 1205

Answers (1)

Amrit Tiwari
Amrit Tiwari

Reputation: 990

You must connect the @IBOutlet into tableView cell class not in the main class. first of all you must make the custom class of tableview cell and assign it on storyboard as suggested in picture and draw @IBOutlet on that custom tableview cell class. Please look the attached image. Image1

image2image3image4

Hope it will help you.

Upvotes: 1

Related Questions