I am working on an iPhone application using Objective C. Since I need to fire two UIViewControllers at once, so I use the code below:
[self.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];
This code works fine in iOS6 and iOS7, but it does not work in iOS8. I checked with a breakpoint, my ViewController method viewDidLoad and viewWillAppear calls, but my view does not load at all, since I get a blank white screen. Can someone please help me out, that for iOS8, how can I solve this problem, should I use the presented ViewController instead of the ViewController?
iphone ios8 presentmodalviewcontroller presentviewcontroller
Anand gautam
source share