1.我就去查了下
[[UIScreen mainScreen] bounds] 在
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
这个最开始的方法中查看大小,发现,我去这里 [[UIScreen mainScreen] bounds] 尺寸就不对.
2.到网上查了下发现 这出现在xcode6 中,在手动删除lLaunch Images Source 后,会出现这种情况.
这是因为项目设置中的Launch Images Source没有设置好的原因。因为把Xcode6自动生成的LaunchScreenController.xib删除了, 项目设置中的Launch Images Source选项变成了 Use Asset Catalog,这时又没有指定正确的Images所以尺寸就不对了。解决办法是在Images.xcassets中创建LaunchImage,并将它做为Launch Images Source就可以了。"
最后上一张bug奇怪的图:
ts.png