美文网首页
调整cell间距

调整cell间距

作者: 要加油啊小和尚 | 来源:发表于2017-12-23 14:29 被阅读0次

直接来到cell.m,重写setFrame方法,拿到cell高度,让cell在原来高度减去一个10就可以了

1.先写一个super seFrame:frame

2.在这个super方法前修改,改完之后再传给super

3.frame.size.height -= 10

cell的悬空效果:

除过上面调整间距,frame.orign.x += 10

frame.size.width -= 20

相关文章

网友评论

      本文标题:调整cell间距

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