只需要在cell.m里写上这句话就可以完美适配啦~~~
- (void)setFrame:(CGRect)frame
{
frame.size.width=MainScreenWidth;
[supersetFrame:frame];
}
只需要在cell.m里写上这句话就可以完美适配啦~~~
- (void)setFrame:(CGRect)frame
{
frame.size.width=MainScreenWidth;
[supersetFrame:frame];
}
本文标题:xib的cell无法适配屏幕宽度的解决办法
本文链接:https://www.haomeiwen.com/subject/qubcettx.html
网友评论