pkluz / PKRevealController

PKRevealController is a delightful view controller container for iOS, enabling you to present multiple controllers on top of one another.
Other
3.85k stars 659 forks source link

It will flash in the first time #227

Closed kaka0704 closed 9 years ago

kaka0704 commented 9 years ago

HomePageViewController *root = [[HomePageViewController alloc] init];

LeftSideMenuViewController *leftMenuViewController = [[LeftSideMenuViewController alloc] init];
UINavigationController *leftNav = [[UINavigationController alloc] initWithRootViewController:leftMenuViewController];

HTNavigationController* mainNav;
mainNav = [[HTNavigationController alloc] initWithRootViewController:root];
self.revealController=[PKRevealController revealControllerWithFrontViewController:mainNav
                                                               leftViewController:leftNav];
self.revealController.animationDuration = 0.25;
    self.window.rootViewController = self.revealController;

top are my all codes when I call [self.navigationController.revealController showViewController:self.navigationController.revealController.leftViewController]; in the first time it will flash ,how can fix this?

pkluz commented 9 years ago

See #181