0

I am adding the ImageView in Table View but I am getting the above error when I compile it? Do I need to add class for cell

enter image description here

Amarjit Dhillon
  • 2,718
  • 3
  • 23
  • 62
  • check this: https://stackoverflow.com/questions/26561461/outlets-cannot-be-connected-to-repeating-content-ios – 3stud1ant3 Aug 26 '17 at 05:29
  • you need to give class of your call if you not create then create UItableviewcell class and give to tableview cell. – Sagar Bhut Aug 26 '17 at 05:30

2 Answers2

3

Outlets cannot be connected to repeating content

You are getting this error message because you have given Outlet to cell's imagevView in viewController's class.

You cannot give outlet directly.

You have to create Subclass of UITableviewCell and will be able to give outlet to any of cell's content.

or You can give Tag to specific view And access the view with tag when required.

Devang Tandel
  • 2,988
  • 1
  • 21
  • 43
1

"Create a table view cell subclass and set it as the class of the prototype. Add the outlets to that class and connect them. Now when you configure the cell you can access the outlets." More info

Siyavash
  • 970
  • 9
  • 23