在XCode Interface Builder中使用约束对标签进行居中

时间:2014-11-04 04:07:17

标签: ios xcode

我试图将标签集中在XCode 6的Interface Builder中。这就是我的工作:

  1. 点击“Hello World'标签并添加高度和宽度约束
  2. 点击相同的标签,然后点击'对齐'约束。检查容器中的水平和垂直对齐。
  3. 当我运行它时,标签位于左上角。为什么它不居中?
  4. 以下是我正在观察的一些图片:

    enter image description here

    enter image description here

    enter image description here

0 个答案:

没有答案