Dar*_*lay 0 iphone core-animation ios4 objective-c-blocks ios5
我有一个按钮,在我的应用程序(UIButton的子类)中发光.要为发光设置动画,请使用以下方法
- (void)glow
{
[UIView animateWithDuration:1.0f
delay:0.0f
options:UIViewAnimationOptionCurveEaseInOut
animations:^(void){
if (glowingImageView_.alpha != 1.0f) {
[glowingImageView_ setAlpha:1.0f];
}
else {
[glowingImageView_ setAlpha:0.3f];
}
}
completion:^(BOOL finnished){
if (on_) {
[self glow];
}
}];
}
Run Code Online (Sandbox Code Playgroud)
它在iOS 5上运行良好,但在iOS 4.3中我的应用程序停止处理任何用户交互.任何人都知道可能导致这种情况的原因是什么?
谢谢
| 归档时间: |
|
| 查看次数: |
1007 次 |
| 最近记录: |