【发布时间】:2009-11-18 03:24:24
【问题描述】:
有没有一种动画方式来启用或禁用按钮?我尝试了以下但没有成功。我现在猜测 enabled 属性不能像 opacity 那样动画 - 但我希望我错了。
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
theButton.enabled = YES;
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
我不敢相信没有setEnabled:(BOOL)enabled animated:(BOOL)animated 方法。
【问题讨论】:
标签: iphone animation button core-animation uibarbuttonitem