1

Like setting up a code so that detects the iPhone's resolution and loads a certain viewcontroller depending on it's resolution.

CGRect screenBounds = [[UIScreen mainScreen] bounds];
if (screenBounds.size.height == 568) {
    // load ViewContollerA 
} else {
    // load ViewContollerB
}

How to set code to load a storyboard? Thanks.

I'm thinking it's probably going to have to be connected to an IBAction so that when you press on the button it verifies what the resolution is and loads the next storyboard (either A or B) depending on that.

Tomasz Wojtkowiak
  • 4,910
  • 1
  • 28
  • 35
user1677210
  • 169
  • 1
  • 1
  • 13
  • You may find some hints [here](http://stackoverflow.com/questions/8066525/prevent-segue-in-prepareforsegue-method), it's about preventing a segue but may just as well be used for choosing one. – Joachim Isaksson Oct 05 '12 at 16:54

1 Answers1

0

I answered that question couple of days back. Here

How to switch to different Storyboard for iPhone 5?

Hope helps...

Community
  • 1
  • 1
lionserdar
  • 2,022
  • 1
  • 18
  • 21