iOS DeveloperiOS 开发

xib的cell无法适配屏幕宽度的解决办法

2016-09-01  本文已影响164人  PM_崧崧

只需要在cell.m里写上这句话就可以完美适配啦~~~

- (void)setFrame:(CGRect)frame

{

frame.size.width=MainScreenWidth;

[supersetFrame:frame];

}

上一篇 下一篇

猜你喜欢

热点阅读