Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationController - pop animation bug

I have trouble with animation of UINavigationController. I have master-detail view. On view one button, that's open detail view. Detail view opens correctly, with normal animation of header and with sliding of content. But when I click Back button, header animated correctly, and content of detail disappear in moment and not animated. Here is the link on demonstration of problem: https://www.youtube.com/watch?v=C4UApAhEhx8

For opening I use standard

AboutViewController *aboutViewController = [[AboutViewController alloc]   initWithNibName:@"AboutViewController_iPhone" bundle:nil];
[self.navigationController pushViewController:aboutViewController animated:YES];

I tried to pop view with code, no with back button, but there is same problem.

like image 211
Yevgen Avatar asked Nov 14 '12 10:11

Yevgen


1 Answers

This happens if somewhere in your code you are either forcing a call to one of the viewWillAppear counterparts with YES or NO instead of letting iOS decide, or if you mismatch calls to [super viewWillAppear:animated] with viewDidAppear.

like image 62
Miha Hribar Avatar answered Oct 09 '22 22:10

Miha Hribar