PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > iOS开发教程 > 正文

    iOS UITableView分割线

    作者:张志勇来源:原创浏览:时间:2020-09-30 00:07:50我要评论
    导读:tableVIew多余的分割线去掉_historyTableView.tableFooterView = [[UIView alloc]initWith :CGRectZero];tableView分割线的长度- (voi...
    tableVIew 多余的分割线去掉

     _historyTableView.tableFooterView = [[UIView alloc]initWith :CGRectZero];

     

    tableView 分割线的长度

    - (void)tableView:(UITableView *)tableView

      willDisplayCell:(UITableViewCell *)cell

    forRowAtIndexPath:(NSIndexPath *)indexPath {

        if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {

            [cell setSeparatorInset:UIEdgeInsetsMake(0, 10, 0, 10)];

        }

        if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {

            [cell setLayoutMargins:UIEdgeInsetsMake(0, 10, 0, 10)];

        }

    }

     
    iOS 分割线不显示用tableView的separatorStyle属性

        self.myPeronalTableView.separatorStyle = UITableViewCellSeparatorStyleNone;


    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-155-5992-1.html
    相关热词搜索: