-
-
Save nonamelive/9334458 to your computer and use it in GitHub Desktop.
This could be improved to store concurrent push actions and execute them synchronously one after another. What do you think?
Is there a way to reproduce the crash that this code tries to solve?
I like @heikkihautala 's idea and I'm trying to implement it. But I have to make sure that my code solves the crash too.
We had the same issue as @whychengxiaogang said, it will not enter push flow if swipe from edge to right for poping view controller but not actually pop, just be in middle state of pushing.
our workaournd: in view controller :
-
(void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
staticMember.shouldIgnorePushingViewControllers = YES;
} -
(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:NO];
staticMember.shouldIgnorePushingViewControllers = NO;
}
Very good idea, thanks.