I just downloaded XCode 4.5 and iOS 6.0, and compiled it for my app, and noticed when running iOS 6.0
on the simulator, the behavior of "sizeToFit" has changed.
I'm using a UILabel with text that changes in size over time (a scoreboard), e.g:
And my score no longer fits. I can't even see it.
Before, the label would "expand" to fit the text, but now, the label only "contracts" to fit.
It does not expand anymore.
What's up with this change? 😕
How do you fit a UILabel with text that can grow or contract?
on the simulator, the behavior of "sizeToFit" has changed.
I'm using a UILabel with text that changes in size over time (a scoreboard), e.g:
Code:
[self.myLabel setText:myString];
[self.myLabel sizeToFit];
And my score no longer fits. I can't even see it.
Before, the label would "expand" to fit the text, but now, the label only "contracts" to fit.
It does not expand anymore.
What's up with this change? 😕
How do you fit a UILabel with text that can grow or contract?