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
2010-06-15 18:32:06
That doesn't actually limit the number of characters, it just *displays* a limited number of characters.
Ben S
2010-06-15 18:34:47