search

Home  >  Q&A  >  body text

ios - 不管什么模拟器或者是真机,打印的self.view.frame.size始终是375*667

不管什么模拟器或者是真机,打印的self.view.frame.size始终是375*667!求解答

PHPzPHPz2772 days ago678

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:50:26

    Did the view not perform automatic layout when printing? Generally, it is more reliable to use the following two macros before automatic layout

    #define SCREEN_HEIGHT   [UIScreen mainScreen].bounds.size.height
    #define SCREEN_WIDTH    [UIScreen mainScreen].bounds.size.width

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:50:26

    Where did you print it?

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:50:26

    My personal feeling is that you used xib and set its size to 4.7

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:50:26

    Is this true even at the resolution of 4S? Or is this also the case on 6 Plus?

    If it is this resolution on 6 Plus, have you added a 5.5-inch startup image, for example, it looks like this:

    reply
    0
  • Cancelreply