This is strange... I added a table view to a view controller, set number of prototype cells to 3, but after they got added automatically, the first prototype cell doesn't have a content view, nor can I add one as subview.

What am I missing?
This is possibly some kind of bug. Delete this cell and add again.
The problem is when you create a dynamic prototype for cell it's content view doesn't have an id.
In my case I just opened storyboard file in text editor and noticed that my cell actually have a content view:
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="zco-1o-WJ4">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
But if you see, there is no id for that.
So I found another cell with correct content view and saw that difference was only in id for content view. Correct content view was looking like this:
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="VQc-uV-1iJ" id="UR5-S8-XX9">
So I just added id for content view and it became visible in storyboard file. You can put any unique id and this could be work.
Above solution works fine. But now you know the cause.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With