ios - XCode 6 UIViewController not resizing to fill screen -
i'm creating app without storyboard on xcode 6.4 , when run app, no matter simulator use, (320,480) screen.
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; uiviewcontroller *vc = [[uiviewcontroller alloc] init]; vc.view.backgroundcolor = [uicolor whitecolor]; self.window.rootviewcontroller = vc; [self.window makekeyandvisible]; return yes; } ref img: http://i.stack.imgur.com/hghmt.png
already tryed:
vc.view.autoresizingmask = uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth; what should make fill whole screen?
i had same problem, should set launch image of app default-568@2x.png 640 x 1136 pixel size. more info --> link
also setting @2x @3x image assest you.
Comments
Post a Comment