search

Home  >  Q&A  >  body text

objective-c - self.view.frame.size.width 用真机调试时为什么iPhone6打印出来的值也是320

公司的老项目碰到的问题 新建一个项目没有这个问题

我想大声告诉你我想大声告诉你2873 days ago657

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:20:32

    After asking about the specific situation, the answer is that the old project is not adapted to iPhone6, and the startup image does not add a 375-width image, only a 320-width image


    Original answer:
    What you print must be the Cell of the tableView. The cell is initialized to 320. Wait until layoutSubviews starts to adapt to the screen size

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:20:32

    http://my.oschina.net/ioslighter/blog/390880

    reply
    0
  • Cancelreply