I have a app with UITableView
(in PatientViewController
) and every click on different cells should send different values to the ArticleViewController
. I made every transition between ViewControllers
with this code:
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
NewsViewController *mv = (NewsViewController*)[mainStoryboard instantiateViewControllerWithIdentifier:@"news"];
[self presentViewController:mv animated:YES completion:NULL];
I didn't want to use NavigationController
and don't want to use Storyboard to create segue. So how can I do it with only writing code, without using Storyboard? Thank you.