我使用 UIView 的动画功能(例如 [UIView animateWithDuration:]、[UIView beginAnimations] ... [UIView commitAnimations])开发了一个应用程序。当我在 iPad 上调试它时,它运行正常,但是在服务器几个小时后,动画突然变得非常快,它的持续时间比它的持续时间短。我想知道发生了什么,我不知道。谁能帮我吗?使用的代码 1
[UIView beginAnimations:@"showShine" context:view];
[UIView setAnimationDidStopSelector:@selector(animFinished:finished:context:)];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.4f];
view.frame = CGRectMake(center.x - F_WIDTH / 2, center.y - F_HEIGHT / 2, F_WIDTH, F_HEIGHT); [self.view addSubview:view];
[UIView commitAnimations];
使用的代码 2
[UIView animateWithDuration:DURIATION
animations:^{
[aniView setFrame:rtDestAfter];
}
completion:^(BOOL finised){
[self animationFinished:stoken];
[stoken release];
}
];
谢谢。