Combine static and prototype content in a table view
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a way to combine static tableview cells (static content) with dynamic tableview cells (prototype content) using storyboard? 回答1: I suggest you treat your table as dynamic, but include the cells you always want at the top. In the Storyboard, place a UITableViewController and have it use a dynamic table. Add as many UITableViewCell prototypes to the table as you need. Say, one each for your static cells, and one to represent the variable cells. In your UITableViewDataSource class: #define NUMBER_OF_STATIC_CELLS 3 - (NSInteger