【发布时间】:2011-12-15 09:57:48
【问题描述】:
我正在尝试删除或隐藏 tableview 中带有静态单元格的部分。我试图将它隐藏在函数viewDidLoad 中。代码如下:
- (void)viewDidLoad
{
[super viewDidLoad];
[self.tableView beginUpdates];
[self.tableView deleteSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:YES];
[self.tableView endUpdates];
[self.tableView reloadData];
}
仍然显示部分。我在其中使用故事板。你能帮帮我吗?谢谢!
【问题讨论】:
标签: objective-c tableview storyboard