views:

340

answers:

2

Hello, is there a way to change the font size gradually in a UILabel? I tried it with:

[UIView beginAnimations:@"foo" context:nil];
[UIView setAnimationDuration:0.8];
uiLabel.font = [UIFont boldSystemFontOfSize:144];
[UIView commitAnimations];

The problem is that the change of the font size happens instantly.

A: 

It doesn't look like the font property is animateable.

kubi
Yes, I realized this too - But is there a workaround?
Flocked
You could try modifying the `layer` property of the UILabel to perform your animation. That's just a guess, though. Good luck!
kubi
A: 

I got it, look at this (it is a sample project for the iPhone): link text

Flocked