小编Mik*_*zzy的帖子

动画启用 UIBarButtonItem?

有没有办法以动画方式启用或禁用按钮?我尝试了以下方法但没有成功。我猜测此时启用的属性无法像不透明度那样进行动画 \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];\n
Run Code Online (Sandbox Code Playgroud)\n\n

我不敢相信没有一个setEnabled:(BOOL)enabled animated:(BOOL)animated方法。

\n

iphone animation core-animation button uibarbuttonitem

2
推荐指数
1
解决办法
2316
查看次数