UITableView的其他设置
来源:互联网 发布:大数据发展史 编辑:程序博客网 时间:2024/04/29 16:37
本文主要介绍一些UItableView的冷门设置,因为在开发中,设计师总是有一些另类的设计,所以在这里进行一下总结:
UITableViewCell的点击
1.UITableViewCell点击取消背景颜色
在cellForRowAtIndexPath:方法中写上
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2.UITableViewCell点击背景颜色闪一下
在didSelectRowAtIndexPath:方法中写上
[tableView deselectRowAtIndexPath:indexPath animated:NO];
UITableView的分割线
3.去掉UITableView的分割线
在创建UITableView的时候
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
4.更改UITableView的分割线的颜色
在创建UITableView的时候
tableView.separatorColor = [UIColor redColor];
5.更改UITableView的分割线的长度
在创建UITableView的时候
// 设置端距,这里表示separator离左边和右边均80像素tableView.separatorInset = UIEdgeInsetsMake(0,80, 0, 80);
6.去除UITableView底部多余的分割线
在创建UITableView的时候
UIView *v = [[UIView alloc] initWithFrame:CGRectZero]; [self.tableView setTableFooterView:v];
0 0
- UITableView的其他设置
- uitableview的设置问题
- 9.UITableView的设置
- uitableview中设置某个cell不能选中,其他可以选
- NSOperation的其他设置
- UITableView 设置标题的方法
- 设置UITableview 浮动的 header
- 动态设置uitableView的高度
- 对UITableView的一些设置
- UITableView的cell一些设置
- UITableView的段头设置
- UITableView 相关属性的设置
- UITableView的部分自定义设置
- head区的其他设置
- head区的其他设置
- 设置UITableView的section之间的距离
- 设置UITableView的section之间的距离
- UITableView设置单元格的高度的方法
- PAT 1022Complete Binary Search Tree (30)
- ubuntu上配置jdk
- iOS - 大文件下载篇(NSURLSessionDownloadDelegate 协议)
- js实现textarea高度根据内容自适应
- 如何使用Oralce企业管理(Oracle Enterprise Manager)控制台
- UITableView的其他设置
- CodeForces 448D Multiplication Table (二分 )
- C++ Builder 全部API函数列表
- 2016 Multi-University Training Contest 3 Rower Bo
- ios加载图片内存优化
- k短路 SPFA+A*算法 poj 2449
- Android Fragment使用总结
- iOS中如何实现单个页面支持横竖屏(其他页面只能竖屏)
- 机房收费系统思路整理