I have a view controller called vc0 which is presented like this:
[self presentViewController: vc1 animated: YES completion: nil];
And in vc1 I
First View:
Firstly embed in navigation controller in first view. and use this code to navigate to another view
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];
FirstView *rvc = [storyboard instantiateViewControllerWithIdentifier:@"apps"];
[self.navigationController pushViewController:rvc animated:YES];
Second view:
Add this line in the method for dismiss view
- (IBAction)back{
[self.navigationController popViewControllerAnimated:YES];
}