I’m pretty new to xcode. I’ve been working on a project, where I have one main tab bar controller and several navigation controllers. I want to keep my following VCs in “navigation stack” so Im using following method of presenting view controllers:
- (IBAction)buttonClick:(id)sender {
SomeViewController *pViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ponViewController"];
//initialize some "public variables of that controller
[self.navigationController pushViewController:pViewController animated:YES];}
However I reached state, when I have around 6 view controllers on my Storyboard, but they are not visually connected. My colleagues are getting confused, because when they want to see which VC connects to another, they have to look into the code…
Therefore my question… Is there any way to connect ViewControllers in InterfaceBuilder(storyboard) without creating any particular kind of segue(Modal, push, custom). Just to demonstrate connections between view controllers?
If you want to use segues, you don’t have to use the pushViewController method to present your next view controller. You can design it all in Interface Builder and connect the view controllers with push segues. You should give each segue a unique identifier. Then in the buttonClick: method of yours, you can use
to show a view controller.
If there’s anything you need to do before a view controller is pushed, you can do it in