Vic*_*320 7 iphone core-animation uiview ipad ios4
我试图创建一个无限循环的动画,但我遇到了一些麻烦.我正在使用这行代码使我的视图"悸动"红色,但是当我调用此行时,它可以工作但是我的UI没有响应.
[UIView animateWithDuration:1.0f
delay:0.0f
options:(UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat)
animations:^{
self.backgroundColor = [UIColor colorWithRed:0.5 green:0.0 blue:0.0 alpha:1.0];
}
completion:nil];
Run Code Online (Sandbox Code Playgroud)
我的问题是:1)这是正确的方法吗?2)为什么这会使UI无响应?
| 归档时间: |
|
| 查看次数: |
4296 次 |
| 最近记录: |