NSLog(@"the View Weight is --%f--",self.view.frame.size.width);
NSLog(@"the View Height is --%f--",self.view.frame.size.height);
我跑了使用iPhone 4S,5,6相同的代码,6S无法获取视图的宽度高度上XCODE 6
对iPhone 4S的它给人320480
,但对于所有其他设备它给我320,568。无论5,6,6S
这是Xcode 6.0的错误?
即使 的NSLog(@ “的高度为 - %的F - ”,[[UIScreen mainScreen]界限] .size.height)给出M,E 568上iPhone 6
你在哪里写在viewDidLoad或viewDidAppear? – 2014-10-08 06:46:51
不,在6 Plus上它应该是414 * 736 – gabbler 2014-10-08 06:47:11
@ParagShinde是我正在写它在加载 此外NSLog(@“高度是 - %f - ”,[[UIScreen mainScreen]范围] .size.height )iPhone 6上的赠送者568 – Jasmeet 2014-10-08 06:50:01