Im developing app which require tabbar and side menu. so i used tab bar demo but its tab bar and navigation bar both are moving during sliding. I want tab bar and navigation bar must be static. I looked for options but nothing works. so i modified some of the code . but it producing several bugs. what i done is , i created five instance of MFSide menu, then i added to the tab bar , then i added to navigation bar. Now tab bar and navigation bar is static. now its producing several bugs,. i know its not proper implementation. guys please help me
Im developing app which require tabbar and side menu. so i used tab bar demo but its tab bar and navigation bar both are moving during sliding. I want tab bar and navigation bar must be static. I looked for options but nothing works. so i modified some of the code . but it producing several bugs. what i done is , i created five instance of MFSide menu, then i added to the tab bar , then i added to navigation bar. Now tab bar and navigation bar is static. now its producing several bugs,. i know its not proper implementation. guys please help me
//navigation one UIViewController *view1 = [HomeViewController viewController]; navigation1 = [[UINavigationController alloc] initWithRootViewController:view1];
// Step 2: Instantiate. self.sideMenuContainer1 = [MFSideMenuContainerViewController containerWithCenterViewController:navigation1 leftMenuViewController:[MenuViewController viewController] rightMenuViewController:nil];
//navigation two UIViewController *view2 = [AlertViewController viewController]; navigation2 = [[UINavigationController alloc] initWithRootViewController:view2];
UINavigationController *sideNavigation = [[UINavigationController alloc]initWithRootViewController:[MenuViewController viewController]]; // sideNavigation.navigationBar.tintColor = ] // Step 2: Instantiate. self.sideMenuContainer2 = [MFSideMenuContainerViewController containerWithCenterViewController:navigation2 leftMenuViewController:sideNavigation rightMenuViewController:nil];
//navigation three UIViewController view3 = [NewsViewController viewController]; navigation3 = [[UINavigationController alloc] initWithRootViewController:view3]; UINavigationController sideNavigation2 = [[UINavigationController alloc]initWithRootViewController:[MenuViewController viewController]]; // Step 2: Instantiate. self.sideMenuContainer3 = [MFSideMenuContainerViewController containerWithCenterViewController:navigation3 leftMenuViewController:sideNavigation2 rightMenuViewController:nil];
//navigation four UIViewController view4 = [CalenderViewController viewController]; navigation4 = [[UINavigationController alloc] initWithRootViewController:view4]; UINavigationController sideNavigation3 = [[UINavigationController alloc]initWithRootViewController:[MenuViewController viewController]]; // Step 2: Instantiate. self.sideMenuContainer4 = [MFSideMenuContainerViewController containerWithCenterViewController:navigation4 leftMenuViewController:sideNavigation3 rightMenuViewController:nil];
//navigation five UIViewController view5 = [MoreViewController viewController]; navigation5 = [[UINavigationController alloc] initWithRootViewController:view5]; UINavigationController sideNavigation4 = [[UINavigationController alloc]initWithRootViewController:[MenuViewController viewController]]; // Step 2: Instantiate. self.sideMenuContainer5 = [MFSideMenuContainerViewController containerWithCenterViewController:navigation5 leftMenuViewController:sideNavigation4 rightMenuViewController:nil];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:self.sideMenuContainer1, self.sideMenuContainer2, self.sideMenuContainer3, self.sideMenuContainer4, self.sideMenuContainer5, nil];