ios - Copied iPhone storyboard over to iPad, but iPad loading with different view controller -
i copied in iphone storyboard on ipad storyboard , changed nothing. runs on iphone, loading welcomeviewcontroller initial scene.
however, when run on ipad, program crashes because tries load mainviewcontroller initial scene.
i checked on interface builder, , initial scene set view controller welcomeviewcontroller. went in debugger , put breakpoint in viewdidload method of welcomeviewcontroller, , ipad never hits breakpoint iphone does.
this identity inspector view controller of initial scene.
this attributes inspector view controller of initial scene (same above).
why ipad insist on trying load viewcontroller initial view controller?
thanks
edit: when go targets > ipad deployment info, , set main storyboard mainstoryboard_iphone instead of mainstoryboard_ipad works. reason mainstoryboard_ipad, literal clone of iphone storyboard, doesn't.
- make sure ipad view has initial controller set
welcomeviewcontroller
in storyboard. represented arrow given below.
- next make sure ipad deployment section in target refers ipad storyboard.
Comments
Post a Comment