tags:

views:

63

answers:

1

how can i limit the number of characters in a label

+1  A: 

You can truncate the text with an ellipsis automatically by setting the frame of the UILabel.

NSInteger newSize = 10;
label.frame = CGRectMake(label.frame.origin.x, label.frame.origin.y, label.frame.size.height,  newSize);
Jacob Relkin
That doesn't actually limit the number of characters, it just *displays* a limited number of characters.
Ben S