Flocked
Flocked

Reputation: 1890

How to change the font size gradually in a UILabel?

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.

Upvotes: 1

Views: 4802

Answers (2)

Flocked
Flocked

Reputation: 1890

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

Upvotes: 1

kubi
kubi

Reputation: 49354

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

Upvotes: 0

Related Questions