Ok, so with xcode you can have different screen sizes for the iPhone 5 and the iPhone 4, when I try to place things on the Storyboard file they always muck up, like I place everything one way for the iPhone 5 and then it gets cut off on the iPhone 4. Is there a way of having two different versions of the storyboard maybe, so I could position the objects for each screen size differently?
How to set two different screen options in xcode
619 Views Asked by Condrum At
1
There are 1 best solutions below
Related Questions in IOS
- How to edit the xorg.conf
- What exactly is X11 Channel
- Integrating XCB and libX11 event loops - hanging on select/poll inside Xt
- When I use hsqldb I have problems with GUI (JavaFx)
- X11 Xterm Keyboard layout is off by one or worse.
- libX11: XPutImage first call
- Wine InnoSetup CentOs
- How can I get screenshot from all displays with X11?
- How does Mplayer interface with external windows?
- Create window without title bar
Related Questions in XCODE
- How to edit the xorg.conf
- What exactly is X11 Channel
- Integrating XCB and libX11 event loops - hanging on select/poll inside Xt
- When I use hsqldb I have problems with GUI (JavaFx)
- X11 Xterm Keyboard layout is off by one or worse.
- libX11: XPutImage first call
- Wine InnoSetup CentOs
- How can I get screenshot from all displays with X11?
- How does Mplayer interface with external windows?
- Create window without title bar
Related Questions in STORYBOARD
- How to edit the xorg.conf
- What exactly is X11 Channel
- Integrating XCB and libX11 event loops - hanging on select/poll inside Xt
- When I use hsqldb I have problems with GUI (JavaFx)
- X11 Xterm Keyboard layout is off by one or worse.
- libX11: XPutImage first call
- Wine InnoSetup CentOs
- How can I get screenshot from all displays with X11?
- How does Mplayer interface with external windows?
- Create window without title bar
Related Questions in SCREEN-SIZE
- How to edit the xorg.conf
- What exactly is X11 Channel
- Integrating XCB and libX11 event loops - hanging on select/poll inside Xt
- When I use hsqldb I have problems with GUI (JavaFx)
- X11 Xterm Keyboard layout is off by one or worse.
- libX11: XPutImage first call
- Wine InnoSetup CentOs
- How can I get screenshot from all displays with X11?
- How does Mplayer interface with external windows?
- Create window without title bar
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could do this manually in the code by choosing your storyboard based on screen size. However, I don't think that there is a way to do it automatically, since the app's info.plist only has
Main storyboard file base name
,Main storyboard file base name (iPad)
, andMain storyboard file base name (iPhone)
.To do it manually, you'll want to load your first view controller in your app delegate like this:
Once you've loaded your first view controller this way, you should be able to just use the segues in that storyboard to avoid this logic again. If you need to load a view controller manually you can just access the
self.storyboard
property of the currentUIViewController
to make sure you are accessing the correct storyboard without checking the screen height.