Reputation: 19134
For an alert dialog, I added a UITableView, then while I try to Table View Cell the Interface Builders doesn't accept dropping Table View Cell "on" table view, please check screenshot, I should mention the root is UIView, not UIViewController:
Upvotes: 3
Views: 3341
Reputation: 3137
I'm sorry, but prototype cells are available only in storyboard-based projects.
Cannot add a PrototypeCell to UITableView inside xib file
You have to create custom UITableViewCell For UITableView
Upvotes: 3
Reputation: 47049
You are using XIB with UITableView
so You can't directly add cell of table view same like StoryBoard but You need to create separate XIB of UITableViewCell
use with your table view.
For more information look at below.
How do you load custom UITableViewCells from Xib files?
Upvotes: 8