Skip to content

Instantly share code, notes, and snippets.

@fahied
Created December 12, 2016 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahied/4acca1288dd1f551bb7d509560f64adc to your computer and use it in GitHub Desktop.
Save fahied/4acca1288dd1f551bb7d509560f64adc to your computer and use it in GitHub Desktop.
Convert iPhone storyboard to iPad (Universal) storyboard
After some digging through the storyboard source code, it turns out that the iPad storyboard was copied from the iPhone storyboard. So, the question really became how do I convert an iPhone storyboard into an iPad storyboard?
The answer is surprisingly simple. I ran across this SO answer -- to convert an iPhone storyboard to an iPad storyboard, do the following:
From Xcode, right-click on the storyboard and choose Open As -> Source code
Search for targetRuntime="iOS.CocoaTouch"and change it to targetRuntime="iOS.CocoaTouch.iPad"
Right-click on the storyboard again and choose Open As -> iOS Storyboard
The storyboard will now show all views in the correct size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment