xib的cell无法适配屏幕宽度的解决办法
2016-09-01 本文已影响164人
PM_崧崧
只需要在cell.m里写上这句话就可以完美适配啦~~~
- (void)setFrame:(CGRect)frame
{
frame.size.width=MainScreenWidth;
[supersetFrame:frame];
}
只需要在cell.m里写上这句话就可以完美适配啦~~~
- (void)setFrame:(CGRect)frame
{
frame.size.width=MainScreenWidth;
[supersetFrame:frame];
}