RearViewController.m
-(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue
{
if ([segue.identifier isEqualToString:@"unwindToViewController"]) {
ViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController"];
[self presentViewController:detail animated:YES completion:nil];
}
}
If I click back from my RearViewController
the ViewController
is not presented instead it just peeps and goes off(again shows RearViewcontroller
).
Image2