简体   繁体   中英

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:

在此处输入图片说明

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM