uiTableView 默认选中并加载数据
2015-10-17 12:34
253 查看
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:3 inSection:0]; //默认选中的行数
[_floorTableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];//跳转到选中的cell
[self tableView:_floorTableView didSelectRowAtIndexPath:indexPath];//调用TableView的代理方法
[_floorTableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];//跳转到选中的cell
[self tableView:_floorTableView didSelectRowAtIndexPath:indexPath];//调用TableView的代理方法
相关文章推荐
- StringBuilder和StringBuffer的区别
- AlertView 和 UIAlertController 简析学习和简单示例
- 【Mockplus教程】如何批量修改组件属性
- 【Mockplus教程】如何使用本地图片和在线图片
- 【Mockplus教程】为什么我不能设置链接的切换动画?
- 翻译:深入 AngularUI Router
- IOS笔记UI--Button设置选中字体颜色
- MySQL(18):Select- subquery子查询
- UITableView常见用法以及注意细节
- UI -NSBundle
- SPOJ GSS1 Can you answer these queries I
- autolayout UIImageView 根据 UILabel的宽度变换位置
- MFC的CreateTimerQueueTimer和timeSetEvent两个高精度定时器的比较
- Queue类
- SPOJ GSS7 Can you answer these queries VII
- 利用运行时设置UITextField 光标颜色
- iOS界面编程-UIButton
- Difference between Key, Primary Key, Unique Key and Index in MySQL
- JAVA基础学习day23--GUI基础
- 精致的外观Request