I worked on a App using UIView's anmation function(such as [UIView animateWithDuration:], [UIView beginAnimations] ... [UIView commitAnimations]). When I debug it on iPad, it runs ok, but after server hours later, the Animation suddenly become very fast, it's duration is less than what it is. I wonder what happened, and I've no idea. Can anyone help me out? Code used 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];
Code used 2
[UIView animateWithDuration:DURIATION
animations:^{
[aniView setFrame:rtDestAfter];
}
completion:^(BOOL finised){
[self animationFinished:stoken];
[stoken release];
}
];
Thanks.