Ich möchte Schieberegler Menü Tabview Controller integrieren.Registerkarte Klick sollte den Schieberegler Menü Ziel öffnen c
Explanation :
-I have application which have 4 tabbutton.
-There is not slide menu in 1,2,and 3rd button
-When user click on the 4th tab button right side slider menu will open
-When i click any of the items inside the slide menu it will allow be to open any viewcontroller .
-Code habe ich versucht, ist:
//TABVIEW CONTROLLER
self.tabBarController = [[UITabBarController alloc] init];
HomeViewController *VC1 = [[HomeViewController alloc] init];
VC1.title = @"home";
UINavigationController *VC1Navigation = [[UINavigationController alloc]
initWithRootViewController:VC1];
timelineViewController *VC2 = [[timelineViewController alloc] init];
VC2.title = @"Timeline";
UINavigationController *VC2Navigation = [[UINavigationController alloc]
initWithRootViewController:VC2];
messageViewController *VC3 = [[messageViewController alloc] init];
VC3.title = @"message";
UINavigationController *VC3Navigation = [[UINavigationController alloc]
initWithRootViewController:VC3];
calenderViewController *VC4 = [[calenderViewController alloc] init];
VC4.title = @"calender";
UINavigationController* VC4Navigation = [[UINavigationController alloc]
initWithRootViewController:VC4];
slideViewController *VC5 = [[slideViewController alloc] init];
VC5.title = @"profile";
UINavigationController* VC5Navigation = [[UINavigationController alloc]
initWithRootViewController:VC5];
NSArray* controllers = [NSArray arrayWithObjects:VC1Navigation, VC2Navigation, VC3Navigation,VC4Navigation,VC5Navigation, nil];
self.tabBarController.viewControllers = controllers;
Für Slider-Menü i Code bin für: https://github.com/SocialObjects-Software/AMSlideMenu Hinweis: Ich bin nicht mit .storyboard. Ich bevorzuge die Verwendung von XIB für dieses Projekt.
Bitte führen Sie mich. Danke.
Vielen Dank für die schnelle Antwort. Ist es möglich, die Folie auf der Oberseite eines in der Anwendung geöffneten Viewcontrollers zu öffnen? –
Erstellen Sie eine benutzerdefinierte Navigationsleiste mit der linken Menüleiste als "Menütaste". In dieser benutzerdefinierten Navigationsklasse; Sie können IBAction Outlet haben, um Ihren Menü-Slider aufzurufen. – user3300864