TableView相关小细节
2012-12-14 17:27
218 查看
1. UITableView隐藏没有数据的cell的边框线
2. 设置TableView的边框线,(需引进QuartzCore.framework)
Table.layer.borderWidth = 1;
Table.layer.borderColor = [UIColor redColor];
3. 设置TableView初始化时默认滚动到某一行
NSIndexPath *idxPath = [NSIndexPath indexPathForRow:i inSection:0]; //i为需要滚动到的行数
[Table scrollToRowAtIndexPath:idxPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
- (void)setExtraCellLineHidden: (UITableView *)tableView { UIView *view =[ [UIView alloc]init]; view.backgroundColor = [UIColor clearColor]; [tableView setTableFooterView:view]; [view release]; }
2. 设置TableView的边框线,(需引进QuartzCore.framework)
Table.layer.borderWidth = 1;
Table.layer.borderColor = [UIColor redColor];
3. 设置TableView初始化时默认滚动到某一行
NSIndexPath *idxPath = [NSIndexPath indexPathForRow:i inSection:0]; //i为需要滚动到的行数
[Table scrollToRowAtIndexPath:idxPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
相关文章推荐
- UITableView回调和table相关成员方法详解
- tableView 用法细节
- HY项目中问题总结(tableview 的细节处理以及基类的使用)
- tableView的一些细节
- tableView一些细节问题用于开发
- Android 自定义View属性相关细节
- [iOS]UITableView回调和table相关成员方法详解
- 源码推荐(6.17):keyboard细节处理 流畅 简洁 复用性高,用tableview解决长文字 过多项的Actio
- iOS开发--开发细节(去掉tableView下方的横线)
- iOS关于TableView的moveRowAtIndexPath相关介绍
- iOS开发tableview二级联动的细节实现中注意的细节总结
- Android 自定义View属性相关细节
- viewController 和 tableView 相关方法执行顺序及作用
- Ios 该图显示其出现的相关问题定义UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
- 百思不得其姐关注模块的推荐关注中 右侧TableView刷新细节
- iOS 编程中用的最多的 tableView相关技术
- UIKit-TableView-简单的TableView细节扩展
- 长按tableview弹出相关菜单
- UITableView回调和table相关成员方法详解
- (三十八)从私人通讯录引出的细节II -数据逆传 -tableView点击 -自定义分割线