Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Illegal configuration. Connection "cell" cannot have a prototype object as its destination

I have 2 errors

"Illegal configuration. Connection "cell" cannot have a prototype object as
its destination" 

Connections dont duplicate, cells are empty, without other controls in them. I try to clean project and rebuild it, but it didnt help me. How can I fix it? Thank you

like image 675
STBY Avatar asked Apr 01 '14 10:04

STBY


2 Answers

Are you trying to link outlets of the cells (or elements of the cells) directly to the view controller? That would be a problem.

If you want your table view to always have the same content, you can change its content to "static cells" in the storyboard, and then you can link it like that.

If you want the table view cells to change dynamically, you cannot do it that way. You need to create a UITableViewCell subclass for your cells, and create the outlets there.

If this doesn't help at all, please explain your problem a bit better.

like image 188
Tiago Lira Avatar answered Nov 13 '22 00:11

Tiago Lira


You probably have an outlet from something like your view controller that's connected to a prototype cell in a table view. An outlet is a to-one relationship. The cell is going to be instantiated many times, so this doesn't make sense, and is an error.

like image 3
Jon Hess Avatar answered Nov 13 '22 00:11

Jon Hess