国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 安平县| 清徐县| 石狮市| 福贡县| 湾仔区| 红安县| 曲周县| 常熟市| 铜梁县| 会同县| 加查县| 瑞丽市| 安龙县| 金秀| 伊吾县| 广安市| 东源县| 兖州市| 卢氏县| 宜君县| 昌图县| 沙田区| 保亭| 巩义市| 石狮市| 台山市| 美姑县| 勃利县| 百色市| 桓台县| 长乐市| 武城县| 松溪县| 手游| 简阳市| 乐东| 黎城县| 淮安市| 泰安市| 双鸭山市| 莱西市|