简体   繁体   中英

Xcode 8.1 trouble adding storyboard for iPad to universal app with existing iPhone storyboard

My app has been universal and has had iPhone storyboard. It works great.

Now I want to run it on iPad. Xcode complained of missing iPad storyboard.

  1. I did File > New > User Interface > Storyboard and
  2. named it "Main_iPad.storyboard". (Existing one has been Main.storyboard)
  3. Went in to Main.storyboard > Select All > Copy
  4. Went in to Main_iPad.storyboard and pasted.
  5. Main_iPadStoryboard > select ViewControll > its properties > set "Is Initial View Controller"
  6. Ran it and it works

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM