TableView分割线顶不到头 解决
来源:互联网 发布:淘宝毛呢短裤 编辑:程序博客网 时间:2024/04/28 01:05
/**
* tableView线条顶到头的方法
*/
-(void)viewDidLayoutSubviews
{
if ([self.tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {
[self.tableViewsetSeparatorInset:UIEdgeInsetsMake(0,0,0,0)];
}
if ([self.tableViewrespondsToSelector:@selector(setLayoutMargins:)]) {
[self.tableViewsetLayoutMargins:UIEdgeInsetsMake(0,0,0,0)];
}
}
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}
- TableView分割线顶不到头 解决
- TableView分割线顶到头
- tableView的分割线左边不到头问题
- iOS -- UITableViewCell 下边的分割线左边顶不到头的问题
- IOS 7 8中tableview分割线左边不到头的解决方法
- UITableViewCell分割线不到头的解决办法
- ios tableView cell分割线顶到头处理
- 解决tableView分割线不顶头
- ios8分割线左边不到头,显示全的方法
- TableView分割线
- tableView 自定义分割线
- TableView 隐藏分割线
- TableView cell 分割线
- tableView分割线
- tableView 分割线顶头
- 自定义tableview分割线
- tableView分割线 、箭头
- 解决IOS7下tableview分割线左边短了一点
- service network restart 血的教训
- 【代码笔记】iOS-单例
- 在eclipse中调试服务器中的项目
- HDOJ 1041 Computer Transformation
- Apache Shiro 简介
- TableView分割线顶不到头 解决
- 训练和测试的区别(五)
- (转载)C++ ofstream和ifstream详细用法
- 配置Java jdk(备忘)
- Openwrt永久修改MAC地址源代码
- ZooKeeper+Wildfly(jboss)+SolrCloud搭建
- 天声人語 20151225 両陛下と戦争の悲しみ
- BTS PenTesting Lab - A1 Injection
- AMF解析遇上XXE,BurpSuite也躺枪