Interface builder doesn't allow adding Table View Cell

Viewed 2992

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

2 Answers

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?

Related