1. 只能在storyboard中使用静态cell,xib中无设置选项;
2. 使用方法为:
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"storyBoardName" bundle:nil];
SomeTableViewController *ViewController = [storyBoard instantiateViewControllerWithIdentifier:@"identifier"];
3. 确保删除对应controller中自动生成的numberOfSectionsInTableView:及tableView:numberOfRowsInSection:,否则tableView会是空白;
网友评论