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.

welcomeviewcontroller

this attributes inspector view controller of initial scene (same above).

welcomeviewcontroller

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.

  1. make sure ipad view has initial controller set welcomeviewcontroller in storyboard. represented arrow given below.

enter image description here

  1. next make sure ipad deployment section in target refers ipad storyboard. enter image description here

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -