I have a UIView as container with a UILabel inside like this:
------------- ---------
| | | |
|Label text | |Label..|
| | --> | |
| | | |
| | | |
------------- ---------
Now when I use:
UIView animateWithDuration:animations:
and try to set the width smaller of the UIView (which contains the UILabel) then during the animation the UILabel suddenly replace with "..." without having smooth transition to it. I setup the UILabel autoresizingmask to UIViewAutoresizingFlexibleWidth, UIViewAutoresizingFlexibleRightMargin to keep it left and set the contentmode to left.
Trying other content mode like:Scale to fill, Aspect fit, Aspect fill doesnt solve my problem either, as they scale the text and then it looks strange.
Anybody have an idea how to get smooth transition for the UILabel?