Mic*_*ich 2 iphone cocoa cocoa-touch objective-c
我在TabBarController中有一个UITableViews,它们填充了单独的数据数组.由于Web同步,此阵列更新,我想更新表.
呼叫:
[self.tableView reloadData]
Run Code Online (Sandbox Code Playgroud)
将重新加载现有单元格中的内容,但我需要为新数据添加单元格.似乎这种方法不是在调用
-tableView:tableView numberOfRowsInSection:section
Run Code Online (Sandbox Code Playgroud)
再次,这是我动态指定行数的地方.有任何想法吗?我已经阅读了所有可以找到的文档,但没有抓到任何内容.这是一个应用程序设计问题吗?
谢谢!
在UITableView中查看这些函数:
-(void)insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation
-(void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10566 次 |
| 最近记录: |