tablelabCell内部的UIlabel取决于大小类

时间:2016-02-02 19:36:10

标签: ios swift uitableview autolayout storyboard

我有TableViewController和AnyxAny的原型单元格: reindex

我为CompactxAny做了一些小改动 anyxany

我想在CompactxAny上将文本的描述标签对齐设置为左侧。有故事板/ Swift代码破解吗?我能解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

We need to install and uninstall some constraints. I have two constraints on label Description in wAny hAny

  1. Top space
  2. Trailing space

Uninstall these two constraints in wCompact hAny

Apply the following constraints:

  1. Leading space of description label and Temperature label
  2. Vertical space between description label and temperature label

Have a look at this:

enter image description here