国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > iOS > 正文

ios開發(fā)解決cell的分割線左側(cè)部分缺失的方法

2019-11-09 18:18:32
字體:
供稿:網(wǎng)友

-(void)viewDidLayoutSubviews {

    

    if ([self.tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {

        [self.tableViewsetSeparatorInset:UIEdgeInsetsZero];

        

    }

    if ([self.tableViewrespondsToSelector:@selector(setLayoutMargins:)])  {

        [self.tableViewsetLayoutMargins:UIEdgeInsetsZero];

    }

    

}

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPat{

    if ([cellrespondsToSelector:@selector(setLayoutMargins:)]) {

        [cell setLayoutMargins:UIEdgeInsetsZero];

    }

    if ([cellrespondsToSelector:@selector(setSeparatorInset:)]){

        [cell setSeparatorInset:UIEdgeInsetsZero];

    }

}


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 团风县| 柳江县| 普安县| 凌源市| 铁岭市| 临海市| 会宁县| 东平县| 黔东| 中江县| 仪陇县| 崇左市| 江源县| 东阳市| 方正县| 红桥区| 保亭| 康乐县| 盖州市| 镇江市| 安岳县| 福建省| 榆中县| 南靖县| 资中县| 昂仁县| 札达县| 扶风县| 巍山| 呼和浩特市| 沭阳县| 日土县| 房山区| 台中市| 白城市| 龙陵县| 榆树市| 喜德县| 城固县| 青海省| 邯郸县|