I have a tab view controller that has such a button, and when it is clicked, a modal view appears:
PostViewController *post = [[PostViewController alloc] init]; // [self.navigationController pushViewController:post animated:YES]; // Presentation [self presentViewController:post animated:YES completion:nil];
When the modal is finished, I want to reject it and click on a new controller of the form as follows:
ProfilesViewController *profile = [[ProfilesViewController alloc] init]; [self.navigationController pushViewController:profile animated:YES];
But I can not do it in post vc as its modal. How to do it?
source share