Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode alignment/spacing between Storyboard and Simulator?

so my storyboard look like this

enter image description here

But when I open on iOS simulator, the item (playing card) is off to the right

enter image description here

What is wrong with the spacing/alignments of Storyboard?

(This is with the most recent iOS 8 and XCode 6)

like image 507
Junho Shin Avatar asked Jan 24 '26 10:01

Junho Shin


1 Answers

Select the playing card ImageView and press the Align button in the auto layout toolbar.

Check the Horizontal Center in Container, ensuring the value is set to 0, and click Add 1 Constraint.

enter image description here

Then press the Pin button and add a top spacing to nearest neighbour constraint of 0, as so:

enter image description here

like image 86
Soumya Ranjan Avatar answered Jan 26 '26 03:01

Soumya Ranjan