Search This Blog

Saturday, January 1, 2011

UIButton label text is being clipped

Programmer Question

I have a UIButton built in Interface Builder that has a default label. In Xcode, I'm changing the label text dynamically like so:



myButton.titleLabel.text = @"this is the new label";


However, when the text updates, the new string is being clipped down to the same size as the original string and ends up looking like:



this...label


Anyone know why this is happening?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails