Making two storyboards for iOS (iPhone and iPad)

后端 未结 5 672
挽巷
挽巷 2021-01-13 10:48

Is it possible to make only one application and inside of it make two storyboards, one for iPhone and one for iPad? I don\'t like the idea of running the app on iPad and cli

5条回答
  •  粉色の甜心
    2021-01-13 11:28

    I had to do this in a project recently... so first you should navigate to your projects target then click the summary button in the top bar you will then see a bar that says "iOS Application Target" in there you will see a drop down menu with a title that says Devices select the universal option. Now add a storyboard for the iPad. Now go back to the projects target and scroll down to the "iPad Deployment Info" section and set your new storyboard as the main storyboard in the text field here you can also add the iPad icon and launch images. Now you are set up for creating a universal app!

提交回复
热议问题