ios - 不管什么模拟器或者是真机,打印的self.view.frame.size始终是375*667
PHPz
PHPz 2017-04-17 17:48:26
0
4
675

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

PHPz
PHPz

学习是最好的投资!

reply all(4)
伊谢尔伦

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
刘奇

Where did you print it?

Peter_Zhu

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

刘奇

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:

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template