Samuli Lehtonen Samuli Lehtonen - 5 months ago 16
iOS Question

iOS multiline label in Interface builder

How can I make a multiline

UILabel
in interface builder for iOS? I tried the
UITextView
but it didn't quite suit my needs.

Answer

You have to assign numberOfLines property. You can do it via code:

textLabel.numberOfLines = 5; // for example

Or via Interface Builder: enter image description here