【发布时间】:2014-11-02 10:06:16
【问题描述】:
好像自从iOS 8出来后,在显示已有的UITableView时,总是会调用numberOfRowsInSection函数。
在 iOS 8 上,当从标签栏控制器切换标签时,其中一个包含表格视图,
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
即使没有调用任何表函数,也总是会被调用。
在 iOS 7 上,当从标签栏控制器切换标签时,其中一个包含表格视图,
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
没有被调用。
有人知道为什么在 ios8 中会出现这种行为吗?解决它?
【问题讨论】:
-
为什么会出现这个问题?
标签: ios uitableview swift ios8