Closed haifengkao closed 9 years ago
Why does PPRevealSideViewController invoke viewWillAppear of its child view controllers?
PPRevealSideViewController
viewWillAppear
It makes viewWillAppear unnecessarily called twice (another is from the UIKit).
- (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; if (!PPSystemVersionGreaterOrEqualThan(5.0)) [_rootViewController viewWillAppear:animated]; PPRevealSideDirection direction = [self getSideToClose]; if (direction != PPRevealSideDirectionNone) [[_viewControllers objectForKey:[NSNumber numberWithInt:direction]] viewWillAppear:animated]; }
This is just for < iOS 5.
Will clean the support for this
Why does
PPRevealSideViewController
invokeviewWillAppear
of its child view controllers?It makes
viewWillAppear
unnecessarily called twice (another is from the UIKit).