Developing universal in Xcode 6

后端 未结 3 712
感动是毒
感动是毒 2020-12-13 19:30

I have Xcode 6 beta installed and I\'m trying to develop an universal app. Before Xcode 6, you had to create 2 separate Storyboards for iPad and iPhone and you could set it

3条回答
  •  时光取名叫无心
    2020-12-13 19:48

    It seems Auto layout is used to support all devices now, yet you can create separate storyboards? Have you tried calling the separate storyboards in code in the app delegate

        if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
           //Use iPhone Storyboard
    
         } else {
    
           //Use iPad Storyboard
         }
    

提交回复
热议问题