2

Created a new project in Xcode 7. With default settings, it created a single storyboard with use size classes selected. I disabled use size classes option in storyboard because my project still needs to support iOS 7.0

I created a separate storyboard for iPad and tried to connect that in project settings. But, can't see options for selecting iPad storyboard.

Here it is a screenshot of settings in my project.

enter image description here

In above screenshot, it shows that I selected device as 'Universal'. Still I can select only one storyboard. For iPad, I don't have an option to select separate storyboard.

Any advice would be appreciated.

Dinesh Raja
  • 8,501
  • 5
  • 42
  • 81

2 Answers2

1

Add a new storyboard file named "iPad", and then set as below in Info.plist. Don't forget to check Is Initial View Controller in iPad stroyborad.

enter image description here

William Hu
  • 15,423
  • 11
  • 100
  • 121
0

You can only provide one interface here. Since you don't want to you size classes, you can manually set the initialViewController of iPad and iPhone storyboards in app delegate. You need to remove main-interface all together from deployment screen.

    window.rootViewController = initialViewController()
    window.makeKeyAndVisible()

and get initialViewController here

    private func initialViewController() -> UIViewController {
        if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
            return UIStoryboard(name: "Main-iPad", bundle: nil).instantiateInitialViewController()!
        } else {
            return UIStoryboard(name: "Main-iPhone", bundle: nil).instantiateInitialViewController()!
        }
    }

Alternatively, you can follow this method too.

Sahil Kapoor
  • 11,183
  • 13
  • 64
  • 87