UITableView的一些操作
来源:互联网 发布:库里20142015数据 编辑:程序博客网 时间:2024/05/10 08:05
1、刷新tableView的某个cell
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0];
[_bgTableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
2、刷新tableView的某个section
NSIndexSet *indexSet = [[NSIndexSetalloc] initWithIndex:sender.tag -10];
[_bgTableViewreloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
3、将tableView自动滚动到底部
[_bgTableViewscrollRectToVisible:CGRectMake(0,0, 0,0) animated:YES];
4、设置tableView默认选择第一个section的第一行cell
NSInteger selectedIndex = 0;
NSIndexPath *selectedIndexPath = [NSIndexPathindexPathForRow:selectedIndex inSection:0];
[_bgTableViewselectRowAtIndexPath:selectedIndexPath animated:NOscrollPosition:UITableViewScrollPositionNone];
- UITableView的一些操作
- 实现UITableView的reloadData完成之后做一些操作
- UITableView的一些属性
- uitableview 的一些使用方法
- UITableView的一些属性
- UITableView的一些方法
- UItableview的一些总结
- UITableView中行的操作
- UITableView中行的操作
- UITableView 中行的操作
- UITableView 的操作
- UITableView的编辑操作
- iPhone:UITableVIew 的一些理解
- UITableView 的一些小知识
- UITableView 的一些小知识
- UITableView的一些基本用法
- UITableVIew的一些编辑属性
- UITableView的一些细节技巧
- 使用rpm包搭建LAMP(需要LAMP环境时候快速搭建)
- Java引用类型
- python学习之---mutable and immutable
- Failed to sync Gradle project '项目名称(module)' Error:failed to find Build Tools revision 20.1.2
- Kindeditor文本编辑器基本配置
- UITableView的一些操作
- [开发笔记]-分享一些励志的话
- android WebView全面总结
- 网卡MAC地址相关信息大全
- bzoj2820: YY的GCD 莫比乌斯反演
- 三大总线
- 二级c语言之最后复习
- QQ音乐5.0全新设计过程要点解析
- xml文法基础