Created
December 12, 2016 13:33
-
-
Save fahied/4acca1288dd1f551bb7d509560f64adc to your computer and use it in GitHub Desktop.
Convert iPhone storyboard to iPad (Universal) storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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