调整cell间距
2017-12-23 本文已影响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.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