how to make UILabel autosize text in storyboard (or interface builder), NOT programmatically

On any element in Interface Builder you can select the element and hit…

Editor > Size to Fit Content (keyboard shortcut: CMD+=)

This will do a “sizeToFit” on the selected element. Labels will fit their text size, image view will resize to the image size, etc…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)