iOS 8 UITableViewCell 分割线 左对齐
来源:互联网 发布:初中作文大全软件 编辑:程序博客网 时间:2024/04/28 14:12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//加入如下代码
-(
void
)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
if
([tableView respondsToSelector:@selector(setSeparatorInset:)]) {
[tableView setSeparatorInset:UIEdgeInsetsZero];
}
if
([tableView respondsToSelector:@selector(setLayoutMargins:)]) {
[tableView setLayoutMargins:UIEdgeInsetsZero];
}
if
([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}
1
@property (nonatomic) UIEdgeInsets separatorInset NS_AVAILABLE_IOS(7_0) UI_APPEARANCE_SELECTOR;
// allows customization of the frame of cell separators
1
2
3
4
5
@property(nonatomic) UIEdgeInsets layoutMargins
Description The
default
spacing to use when laying out content in the view.
Availability iOS (8.0 and later)
Declared In UIView.h
Reference UIView Class Reference
0 0
- iOS 8 UITableViewCell 分割线 左对齐
- UITableViewCell 分割线左对齐
- iOS 8以上uitableviewcell的分割线左边对齐
- iOS UITableViewCell 分割线不到左部顶端的问题!
- cell分割线左对齐
- TableView分割线左对齐
- iOS UITableView默认分割线左对齐(不留间距)
- 去除UITableViewCell分割线的左间隙
- iOS9 UITableViewCell 分割线左顶头
- iOS -- UITableViewCell的分割线
- iOS7 cell分割线左对齐
- iOS8 Separator 分割线左对齐
- 设置UITableView的分割线左对齐
- cell让分割线左对齐
- iOS开发笔记-UITableViewCell分割线
- iOS UITableViewCell的分割线缩进
- iOS-OC-UITableViewCell分割线自定义
- iOS 自定义UITableViewCell的分割线
- 管理线程之等待线程结束
- 测试
- 如何选择Html.RenderPartial和Html.RenderAction
- 原VB封装的命名空间Microsoft.VisualBasic的妙用(方便,实用,高效,快速)
- 变态最大值
- iOS 8 UITableViewCell 分割线 左对齐
- 一、v4l2文档之——v4l2 framework
- 好帖摘录
- 向数据库查询或者更改String类型数据的问题
- 在Ubuntu下配置USB转串口设备的权限
- 如何提高你代码质量
- Unity插件之NGUI学习(3)—— 创建Button
- ftp编写总结
- 数字证书原理