You can use the methods pushViewController:
or presentViewController:
. First you need to get an instance of your UIViewController
which will be opened and which is in the storyboard through the identifier:
SegundaViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"segundaView"];
Now you do the push from the navigationController
:
[[self navigationController] pushViewController:viewController animated:YES];
Or open like a modal:
[self presentViewController:viewController animated:YES completion:nil];
You also want to create
UIViewController
by code or they will come from your storyboard?– Paulo Rodrigues
It’ll come from the storyboard
– CristianCotrena