如何使用Interface Builder和自动布局来布置以下UITableViewCell?
要求:
- imageView 垂直居中且尺寸固定。
- textLabel 和 detailTextLabel 之间有固定的垂直间距。
- textLabel 和 detailTextLabel 在与imageView相对的位置上是垂直居中的。
- textLabel 和 detailTextLabel 的高度总和不得超过imageView的高度。
- 如果需要,textLabel 和 detailTextLabel 可以使用多行文本。其中,textLabel 的优先级高于 detailTextLabel。
示例(非像素完美):两个示例图显示了textLabel 和 detailTextLabel分别被分成两行时的情况。
示例(非像素完美):两个示例图显示了textLabel 和 detailTextLabel分别被分成两行时的情况。