美文网首页
静态cell使用注意事项

静态cell使用注意事项

作者: 谁与望天堂 | 来源:发表于2016-04-02 02:34 被阅读180次

1. 只能在storyboard中使用静态cell,xib中无设置选项;

2. 使用方法为:

UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"storyBoardName" bundle:nil];

SomeTableViewController *ViewController = [storyBoard instantiateViewControllerWithIdentifier:@"identifier"];

3. 确保删除对应controller中自动生成的numberOfSectionsInTableView:及tableView:numberOfRowsInSection:,否则tableView会是空白;

相关文章

网友评论

      本文标题:静态cell使用注意事项

      本文链接:https://www.haomeiwen.com/subject/mwbylttx.html