美文网首页iOS DeveloperiOS 开发
xib的cell无法适配屏幕宽度的解决办法

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

作者: PM_崧崧 | 来源:发表于2016-09-01 11:30 被阅读164次

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

    - (void)setFrame:(CGRect)frame

    {

    frame.size.width=MainScreenWidth;

    [supersetFrame:frame];

    }

    相关文章

      网友评论

        本文标题:xib的cell无法适配屏幕宽度的解决办法

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