在按钮的点击事件里使用
[UIView animateWithDuration:10.0 animations:^{ sender.titleLabel.fOnt= [UIFont systemFontOfSize:18]; } completion:nil]; 没有动画效果。
但是这样写的话:
[UIView beginAnimations:nil context:nil]; sender.titleLabel.fOnt= [UIFont systemFontOfSize:18]; 就有动画效果。
但是如果在后面就上:
[UIView commitAnimations]; 动画效果又没了,这是为什么了?
在搜索引擎上搜了很久没找到答案。
