有沒有辦法在UILabel中逐漸改變字體大小?我試過它:如何在UILabel中逐漸更改字體大小?
[UIView beginAnimations:@"foo" context:nil];
[UIView setAnimationDuration:0.8];
uiLabel.font = [UIFont boldSystemFontOfSize:144];
[UIView commitAnimations];
問題是,字體大小的變化立即發生。
有沒有辦法在UILabel中逐漸改變字體大小?我試過它:如何在UILabel中逐漸更改字體大小?
[UIView beginAnimations:@"foo" context:nil];
[UIView setAnimationDuration:0.8];
uiLabel.font = [UIFont boldSystemFontOfSize:144];
[UIView commitAnimations];
問題是,字體大小的變化立即發生。
什麼是你的起始大小?也許嘗試以較小的增量進行更改? – pkananen 2010-03-23 02:10:10
它與大小無關。我嘗試了很多尺寸。 – Flocked 2010-03-23 02:17:55