UITableViewCell分割线从最左边开始和分割线颜色设置
2015-09-01 09:36
579 查看
self.tableView.separatorColor = [UIColorcolorWithHexString:@"#1c232c"withAlpha:1];
self.tableView.separatorInset =UIEdgeInsetsZero;
//设置cell分割线顶格
- (void)resetSeparatorInsetForCell:(UITableViewCell *)cell {
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}
self.tableView.separatorInset =UIEdgeInsetsZero;
//设置cell分割线顶格
- (void)resetSeparatorInsetForCell:(UITableViewCell *)cell {
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}
相关文章推荐
- easyUI的datagrid控件日期列不能正确显示Json格式数据的解决方案
- UITableViewCell高度计算
- UI UIWindow / bounds / frame
- iOS中uiimage和uicolor相互转化
- request.getRemoteUser() 方法
- priority_queue的用法
- 如何在高并发分布式系统中生成全局唯一Id
- UI:触摸事件 与 事件的回应
- UEFI Bootable USB Flash Drive - Create in Windows(WIN7 WIN8)
- Install and run DB Query Analyzer 6.04 on Microsoft Windows 10
- Install and run DB Query Analyzer 6.04 on Microsoft Windows 10
- APUE《UNIX 环境高级编程》读后感
- iOS_8_API:UITableViewRowAction
- NGUI实现翻牌效果
- 使用Qt Style Sheets制作UI特效
- 在UITableView中插入或者删除指定的行(或者节)
- SSRS 2012 Metro UI 高端报表视频教程【全国首家】
- MySQL树形查询结果封装成Json格式,返回给easyui treegrid
- WebMVC中EasyUI的ComboBox控件的运用
- EasyUI中Messager基本使用