uitableview刷新指定section 或 刷新指定 cell (ios)
来源:互联网 发布:司法拍卖淘宝网怎么进 编辑:程序博客网 时间:2024/05/17 23:33
uitableview刷新指定section 或 刷新指定 cell:
NSUInteger section = self.tableView.numberOfSections - 1; //指定section //刷整个section NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:section]; [self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //还是刷单独的cell NSInteger rows = [self.tableView numberOfRowsInSection:section]; for (NSInteger row = 0; row < rows; row++) { NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section]; UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; if ([cell isKindOfClass:[TableViewFunctionalCell class]]) {//是TableViewFunctionalCell TableViewFunctionalCell *funcCell = (TableViewFunctionalCell *)cell; } }
//一个cell刷新 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0]; [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
0 0
- uitableview刷新指定section 或 刷新指定 cell (ios)
- iOS UITableview 刷新指定的某一个section或cell
- UITableView刷新指定section、cell
- UITableView刷新指定的section和cell
- iOS: TableView如何刷新指定的cell 或section
- iOS: TableView如何刷新指定的cell 或section
- iOS 之 TableView如何刷新指定的cell 或section
- iOS: TableView如何刷新指定的cell 或section
- iOS TableView如何刷新指定的cell 或section
- iOS TableView如何刷新指定的cell 或section
- iOS开发之UITableViewController指定刷新cell 或section
- ios uitableview 刷新某一个cell 或 section
- ios uitableview 刷新某一个cell 或 section
- ios uitableview 刷新某一个cell 或 section
- iOS UITableView 刷新某一个cell 或 section
- ios UITableview 刷新某一个cell 或 section
- iOS 刷新 UITableView某个 section 或 cell
- ios UITableview 刷新某一个cell 或 section
- gcc (GNU编译器套件)
- android中绘制各种图表
- SQL Error: 1064, SQLState: 42000错误原因
- 使用断言NSAssert()调试程序错误
- windows 7下命令行设置环境变量
- uitableview刷新指定section 或 刷新指定 cell (ios)
- 学无止境
- Log4j输出到控制台成功,写入文件失败
- 在论坛中出现的比较难的sql问题:41(循环替换 循环替换关键字)
- codeforces 616D Longest k-Good Segment
- jQuery计算时间差和阴阳历转换
- Rsyslog配置文件详解
- Dynamics CRM2013 用户进入系统所必需的那些权限
- hdoj--5532--Almost Sorted Array(正反LIS)