Search code examples
iosuitableviewuilabelcell

Preferred Width is missing in xcode 5.1.1


I'm trying to make something like in this guide http://www.raywenderlich.com/73602/dynamic-table-view-cell-height-auto-layout, but can't find property for UILabel named Preferred Width

screenshot

Is it bug or have i done something wrong?


Solution

  • If you can't find it in that version of Xcode, you can do it in code

    [label setPreferredMaxLayoutWidth:200.0];