[问题] wrong window size

楼主: dp814082 (dp814082)   2015-11-09 14:23:32
我的Xcode 7.1
不论在模拟器iphone 5,iphone 6, iphone 6 plus, 皆会跑板
出现上下有黑色区域, 如图:https://imgur.com/2KNTSgk
使用
CGRect screenRect = [[UIScreen mainScreen] bounds];
NSLog(@"screenWidth=%f",screenRect.size.width);
NSLog(@"screenHeight=%f",screenRect.size.height);
此段程式码去执行,取得的宽高为320 x 480
非我设定的 320 x 568
请问有人发生过,跟我一样的问题吗?
谢谢
作者: stweber2001 (Weber)   2015-11-09 14:34:00
放上LaunchScreen.xib或各尺寸对应的Launch Image
作者: fr303388 (雪雪)   2015-11-09 16:54:00
ppt.cc/vbxr8

Links booklink

Contact Us: admin [ a t ] ucptt.com