romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.09k stars 1.35k forks source link

how to use uinavigatorcontrller when open url #282

Open overcls opened 8 years ago

overcls commented 8 years ago

reside in the AppDelegate how to process uinavatorcontroller pushViewController

// MBLeftMenuViewController leftVc = [MBLeftMenuViewController new]; UITabBarController homeCtrl = [[UITabBarController alloc]init];

_selectedNav= [[MBNavigationViewController alloc]initWithRootViewController:homeCtrl];

_home = [[RESideMenu alloc]initWithContentViewController:homeCtrl leftMenuViewController:nil rightMenuViewController:nil];
//    RESideMenu *home = [[RESideMenu alloc]initWithContentViewController:[MainViewController new] leftMenuViewController:leftVc rightMenuViewController:nil];
_home.backgroundImage = [UIImage imageNamed:@"leftBg"];
_home.scaleContentView = YES;
_home.contentViewScaleValue = 0.95;
_home.scaleMenuView = NO;
_home.contentViewShadowEnabled = YES;
_home.contentViewShadowRadius = 4.5;

[self.window setRootViewController: _home];