Reputation: 288
I've a problem with animations. When I test the app (in the Simulator or a real iPad), more than one time in two, the animations don't work. Even the transitions between two views. I tried to display what I want without anims, but the problem is still present on the transitions.
Can you help me 'cause I've really no idea what to do :/ Thanks
-(void)displayWithFrame:(CGRect)f
{
[UIView animateWithDuration:0.3 delay:0.0f options:UIViewAnimationOptionTransitionNone
animations:^{
recherche.frame = f;
}
completion:^(BOOL finished){
[recherche initSubviews];
}];
}
A very classical animation ^^
Upvotes: 0
Views: 758
Reputation: 288
Problem solved. I was feeding my array and reloadData in the viewWillAppear instead of viewDidAppear. I don't know why this caused crashes of animations, but after a lot of test, I'm certain that it was the source of the problem. I hope it will help someone, someday ^^
Upvotes: 1