美文网首页
两个tableview

两个tableview

作者: 叶舞清风 | 来源:发表于2019-06-08 18:50 被阅读0次

第一个tableview 只有点击事件
第二个可以左滑删除事件

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (tableView == self.headerTableview) {
        return UITableViewCellEditingStyleNone;
    }
    return UITableViewCellEditingStyleDelete;
}



相关文章

网友评论

      本文标题:两个tableview

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