我正在编写一个抽象的UITableViewController类,我想写一些viewDidLoad类似的东西
if (self.tableView.contentType == UITableViewContentTypeStaticCells) {
// Do something when table view has static cells
} else {
// Do something when table view has dynamic prototypes
}
Run Code Online (Sandbox Code Playgroud)
但显然contentType在UITableView 上没有.有没有办法以编程方式确定tableView的故事板内容是静态还是动态?