ios - iPhone 6 and 6 Plus Storyboards not being used -


the 4.7 , 5.5 inch storyboards app not being used @ runtime. i've read several questions on here regarding support iphone 6 , 6 plus , how need include launch screen file in order system know support new screen sizes. however, after including launch screen , including launchimage files in xcassettes, app still pull 4.0 inch storyboard file , scale layouts. i'm using auto layout , size classes. doing wrong? has else encountered issue , solved it? i've done other question's answers have instructed on here, still cannot app use correct storyboards iphone 6's. i've attached code use select between storyboards different devices.

if (ui_user_interface_idiom() == uiuserinterfaceidiomphone) {      uistoryboard *storyboard;     cgsize result = [[uiscreen mainscreen] bounds].size;     cgfloat scale = [uiscreen mainscreen].scale;     result = cgsizemake(result.width *scale, result.height *scale);      if (result.height == 960) {          storyboard = [uistoryboard storyboardwithname:@"main" bundle:nil];         uiviewcontroller *mainviewcontroller960 = [storyboard instantiateinitialviewcontroller];         [self.window setrootviewcontroller:mainviewcontroller960];      }else if (result.height == 1136) {          storyboard = [uistoryboard storyboardwithname:@"storyboard4.0" bundle:nil];         uiviewcontroller *mainviewcontroller1136 = [storyboard instantiateinitialviewcontroller];         [self.window setrootviewcontroller:mainviewcontroller1136];      }else if (result.height == 1334) {          storyboard = [uistoryboard storyboardwithname:@"storyboard4.7" bundle:nil];         uiviewcontroller *mainviewcontroller1334 = [storyboard instantiateinitialviewcontroller];         [self.window setrootviewcontroller:mainviewcontroller1334];      }else if (result.height == 2208) {          storyboard = [uistoryboard storyboardwithname:@"storyboard55" bundle:nil];         uiviewcontroller *mainviewcontroller2208 = [storyboard instantiateinitialviewcontroller];         [self.window setrootviewcontroller:mainviewcontroller2208];      } 

it isn't enough "include" launch screen. must tell app use launch screen, in app target editor's general pane:

enter image description here

if target editor doesn't that, you're not using launch screen.

also, note iphone 6 or 6 plus is zoomed - that's setting can made in settings app.


Comments