有没有办法以动画方式启用或禁用按钮?我尝试了以下方法但没有成功。我猜测此时启用的属性无法像不透明度那样进行动画 \xe2\x80\x93\xc2\xa0 但我希望我是错的。
\n\n [UIView beginAnimations:nil context:nil];\n [UIView setAnimationDuration:1.0f];\n theButton.enabled = YES;\n [UIView setAnimationDelegate:self];\n [UIView commitAnimations];\nRun Code Online (Sandbox Code Playgroud)\n\n我不敢相信没有一个setEnabled:(BOOL)enabled animated:(BOOL)animated方法。