Monday, 15 August 2011

iphone - Storyboard Device-Specific Resources -



iphone - Storyboard Device-Specific Resources -

i have 2 storyboards named homeview~iphone.storyboard , homeview~ipad.storyboard. both storyboards have initialviewcontroller in storyboard file.

uistoryboard *storyboard = [uistoryboard storyboardwithname:@"homeview" bundle:nil]; uiviewcontroller *controller = [storyboard instantiateinitialviewcontroller];

i next error when seek access instantiateinitialviewcontroller.

could not find storyboard named homeview in bundle nsbundle - nsinvalidargumentexception

do have idea? apple documentation says ~iphone , ~ipad supported file in bundle.

have tried using homeview.storyboard iphone , homeview~ipad.storyboard ipad?

iphone ios ipad storyboard uistoryboard

No comments:

Post a Comment