X $ C $ç对准/故事板和仿真器之间的间距? [英] XCode alignment/spacing between Storyboard and Simulator?

查看:285
本文介绍了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

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

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:

这篇关于X $ C $ç对准/故事板和仿真器之间的间距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆