X $ C $ç对准/故事板和仿真器之间的间距?仿真器、间距、故事

由网友(ー天到黑像疯子)分享简介:所以我的故事情节看起来像这样so my storyboard look like this但是,当我打开在iOS模拟器,该项目(纸牌)是关闭的权But when I open on iOS simulator, the item (playing card) is off to the right 什么是错的间距/...

所以我的故事情节看起来像这样

so my storyboard look like this

但是,当我打开在iOS模拟器,该项目(纸牌)是关闭的权

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

什么是错的间距/故事板的路线?

What is wrong with the spacing/alignments of Storyboard?

(这是最新的iOS的8和X code 6)

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

推荐答案

选择纸牌的ImageView和preSS的自动布局工具栏上的对齐按钮。

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

检查水平中心的集装箱,以确保该值设置为0,然后单击添加1约束。

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

然后preSS引脚按钮,添加一个顶级的间距为0近邻的约束,像这样:

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

阅读全文

相关推荐

最新文章