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

    修改分割线

    作者:张志勇来源:原创浏览:时间:2020-09-30 00:07:50我要评论
    导读:- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cellforRowAtIndexPath:(NSIndexPath *)indexPath...
    - (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)];

        }

    }

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