Wie ich verstehe, Sie haben UITabBarController
auf Storyboard
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Home" bundle:nil];
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"SMShopViewController"];
[self.navigationController pushViewController:controller animated:YES];
aber es ist nicht das, was ich brauche, ich will: ich diese Lösung gefunden wie diese und Sie möchten es aus dem Code zeigen?
So stellen Zum einen storyboard identifier
für UITabBarController
Dann im Code
UITabBarController *tabBar = [self.storyboard instantiateViewControllerWithIdentifier:@"KITTabBarController"];
[self.navigationController pushViewController:tabBar animated:NO];
Wenn Sie übergeordnete Navigation c haben Ontroller besser Weg, es zu tun ist:
[self.navigationController setViewControllers:@[tabBar] animated:YES];
Ihre Frage ist nicht klar oder von niemandem verstanden, fragen Sie genau, was Sie konfrontiert und was Sie getan haben. –
Tab-Leiste haben bereits segue verbunden, um zu navigieren, was sonst noch brauchen Sie? – vaibhav