美文网首页
UITabelView技巧收纳

UITabelView技巧收纳

作者: 小专注 | 来源:发表于2017-03-06 11:56 被阅读9次

    自定义:tableView中

    1.self.contactsTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];//去掉多余的cell

    2.cell.accessoryType = UITableViewCellAccessoryNone; // 不显示最右边的箭头

    3.cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头

    4.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;// 分隔线消失

    5.cell.selectionStyle = UITableViewCellSelectionStyleNone; //点击无效果

    6.cell.separatorInset = UIEdgeInsetsMake(0, LTWidth, 0, 0); /* 删除指定的一个cell 线段 */

    相关文章

      网友评论

          本文标题:UITabelView技巧收纳

          本文链接:https://www.haomeiwen.com/subject/uwbsgttx.html