有没有办法动画启用或禁用按钮?我尝试了以下但没有成功。我现在猜测 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
方法。