I created an app for iPad (not using StoryBoards), with a UITabBarController. I added some labels and textfields at the top of the view. Now, I want to add a UITableView (without the controller) to the window, which it took. When I try to add a UITableViewCell, there is no option for Prototype Cell...
Why? and how do I fix it?
Thank you in advance...
A prototype cell acts a template for your cell's appearance. It includes the views you want to display and their arrangement within the content area of the cell. At runtime, the table's data source object creates actual cells from the prototypes and configures them with your app's data.
First, design your table cell on Storyboard whatever you want. Now, make a subclass of UITableViewCell and assign this class to your prototype custom cell which you have designed on Storyboard. Also, don't forget to set "reuse identifier in Storyboard table cell.
Only storyboards have prototype cells. Regular non-storyboard-based UITableView
objects in Interface Builder do not have prototype cells (static or dynamic).
If using IB, and want to create your 'prototype' cell with IB, just create a new xib and lay out your cell. Otherwise, you can create it programatically.
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