Answer the question
In order to leave comments, you need to log in
Why different sizes of View Controller in Main.storyboard and in iOS Simulator in Xcode 6.1?
Installed new Xcode 6.1 on OS X 10.10.
The View Controller size is set to this: https://www.dropbox.com/s/8ojka5540hjh8j5/%D0%A1%D...
And in the iOS simulator I get that my button is not in the middle: https:// www.dropbox.com/s/vngoo76k71q6h0k/%D0%A1%D... Where
did I go wrong?
PS: I am new to iOS development.
Answer the question
In order to leave comments, you need to log in
1. select Button
2. to the right of wCompact hAny there are buttons for creating constraints.
3. create a constrtaint to center the button.
You can set the view sizes you need: pikucha.ru/idJOZ
Currently you are working with size classes, and therefore the viewController's sizes differ from the real ones, and are approximately equal to the average for all devices corresponding to the class.
If you want the button to be at the same position for all sizes, then use, as Denis Morozov said above , constraints and autolayout
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question