iOS隐藏单个cell分割线
2016-03-10 15:29
351 查看
CGFloat width = CGRectGetWidth(cell.bounds);
if (kIsIOS8) {
cell.separatorInset = UIEdgeInsetsMake(0, width, 0, 0); // 向左偏移
cell.indentationWidth = -width; // adjust the cell's content to show normally
cell.indentationLevel = 1;
}
else {
cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, width);
}
if (kIsIOS8) {
cell.separatorInset = UIEdgeInsetsMake(0, width, 0, 0); // 向左偏移
cell.indentationWidth = -width; // adjust the cell's content to show normally
cell.indentationLevel = 1;
}
else {
cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, width);
}
相关文章推荐
- ios文件管理器创建目录的字典参数
- 服务器返回消息为空iOS
- iOS编程规范
- IOS BLE 蓝牙实现方式
- iOS之常用宏定义
- iOS 开启热点 和 打电话等 高度适配
- iOS开发--CoreGraphics简单绘图
- IOS各种系统控件的高度记录
- iOS 一些常用的开发技巧
- iOS 多线程 pthread的简单使用——iOS 编码复习(五)(多线程3)
- 学习AutoLayout(VFL)
- Xcode 7免证书真机调试
- iOS 开发怎么入门?
- iOS-自定义textView键盘收回按钮
- ios 原生推送配置
- 【图灵】iOS技能书单——入门+进阶+精通
- iOS Xcode必备插件
- ios runtime基础应用
- 枚举 以及 block的定义
- 怎么给iOS项目打包