Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add subviews to a custom UITableViewCell in a storyboard

In Xcode 4, you used to be able to add subviews to the contentView of a dynamic UITableViewCell prototype in a storyboard. I no longer seem to be able to do this--when I drag any view to the table view cell, it doesn't let me add it to the cell, only to the parent table view. Is there a new way to do this that I don't know about yet?

storyboard

view hierarchy

like image 860
Jamie Forrest Avatar asked Oct 17 '13 18:10

Jamie Forrest


1 Answers

It's Xcode 5 bug.

Cell created without Content View. In my case I added one more prototype cell and remove previous, in new cell content view is present.

like image 67
anov Avatar answered Oct 29 '22 16:10

anov