SO I would like to know if there is a possibility to make a call from a view in the code to go to another view, not using segue.
Thanks for the help.
Yes, if you are using a navigation controller, you simply need to push onto the navigation controller:
[self.navigationController pushViewController:otherViewCon animated:YES];
Or, if you want a modal transition:
[self presentModalViewController:otherViewCon animated:YES];
This is all assuming self
is a UIViewController.
To get otherViewCon
from a storyboard designed view controller:
otherViewCon = [self.storyboard instantiateViewControllerWithIdentifier:@"Other View"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With