AVEbrahimi
AVEbrahimi

Reputation: 19134

Interface builder doesn't allow adding Table View Cell

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:

enter image description here

Upvotes: 3

Views: 3341

Answers (2)

Ashish
Ashish

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

iPatel
iPatel

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

Related Questions