Typical UITableViewCell with autorun

How do you plan the following UITableViewCellwith Interface Builder and autorun? Layout

Requirements

  • ImageView is vertically centered and has a fixed size.
  • TextLabel and detailTextLabel have a fixed vertical distance between them.
  • TextLabel and detailTextLabel together should be vertically centered relative to the image.
  • The height of textLabel and detailTextLabel together must not exceed the height of the image.
  • TextLabel and detailTextLabel can use more than one line if necessary. TextLabel has more priority than detailTextLabel.

<strong> Examples

(not perfect pixel)

detailTextLabel two linestextLabel two lines

+4
source share
1

. - , , -layoutSubviews.

, 3 , .

0

All Articles