美文网首页
UITableViewCell 超出显示

UITableViewCell 超出显示

作者: 明月几时有81 | 来源:发表于2018-09-28 17:53 被阅读0次

cell.clipsToBounds =NO;

cell.contentView.clipsToBounds =NO;

注意下面这两个,任选一个,主要解决超出显示的部分会被上个cell遮挡

cell.layer.zPosition= indexPath.row;

cell.backgroundColor = [UIColor clearColor];

view显示在最上层

view.layer.zPosition=999;

相关文章

网友评论

      本文标题:UITableViewCell 超出显示

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