UIWindow layout issue on ios7.1 with xcode 6.0

北慕城南 提交于 2019-12-23 12:13:18

问题


I created a project on xcode 6.0 and I've been running the project on ios8 simulator however when I tried run it on iphone5s ios7.1 simulator the UIWindow frame became to 320x480...

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];

above is how I create UIwindow

What shall I do?


回答1:


You must add correct size iphone/ipad default images, your problem will be solved. , see this link for further details Launch images screen size for iphone



来源:https://stackoverflow.com/questions/26293785/uiwindow-layout-issue-on-ios7-1-with-xcode-6-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!