Reputation: 1951
I changed the text of my UIButton to a long equation. Unfortunately, my text is shortened.
How do I prevent shortening? It shortens my text even when I specify "Clip" or "Word Wrap" in the Nib.
Upvotes: 0
Views: 134
Reputation: 4111
Call these two methods and your button will automatically adjust to the size of the text:
[myButton sizeToFit]; [mybutton setNeedsDisplay];
Upvotes: 1