iOS TableView 默认选中某行
来源:互联网 发布:淘宝达人自媒体认证 编辑:程序博客网 时间:2024/09/21 06:34
在开发中我们经常会遇到这样的需求,就是在一个页面操作进入下一个页面时,要默认的选中该页面某行;
通常写在viewWillAppear里面或者在[tableView reloaData]之后 NSIndexPath * selIndex = [NSIndexPath indexPathForRow:1 inSection:0]; [_tableView selectRowAtIndexPath:selIndex animated:YES scrollPosition:UITableViewScrollPositionTop]; NSIndexPath * path = [NSIndexPath indexPathForItem:1 inSection:0]; [self tableView:self.tableView didSelectRowAtIndexPath:path];
0 0
- iOS TableView 默认选中某行
- iOS TableView 默认选中某行
- ios tableView设置cell选中颜色以及表格默认选中某行
- TableView 默认选中一行
- tableview 默认选中一行
- iOS 让tableView选中固定行
- tableview取消选中某行
- tableView 默认显示某行
- 默认tableview选中第一个cell
- iOS中 cell的选中颜色以及默认选中行
- iOS UItableviewCell 自定义选中颜色及默认选中首行
- Tableview 默认选中第一行以及选中背景自定义
- Tableview 默认选中第一行以及选中背景自定义
- Tableview 默认选中第一行以及选中背景自定义
- TableView 当前选中的行号。 默认会使哪一行选中 加入导航条后contentInset向下偏移的64
- tableView取消选中行的选中状态
- IOS开发之tableview只选中一行
- iOS tableview获取当前选中的cell
- document.documentElement.scrollTop与document.body.scrollTop
- Windows 2016/Windows Kits/HLK Studio/HLK manager
- 阅读徐宜生《Android群英传》的笔记——第4章 ListView 使用技巧——到4.1.7
- MongoDB干货篇之安装
- 查询不同班级,不同课程的平均成绩,按照平均成绩从大到小排序
- iOS TableView 默认选中某行
- cents7 mysql数据库安装和配置
- Java网络编程-IO多路复用(单线程)
- DOM性能优化 那些年踩过的坑
- CodeForces 645 B.Mischievous Mess Makers(水~)
- NULL和唯一约束UNIQUE的对应关系
- 容器日志处理及实现
- ul,ol,dl的区别
- MySQL实现计数器的表设计及实现