I had tried presenting a UIPopoverController on a viewWillAppear on a view presented via a modal view controller. However when doing so the UIPopoverController immediately got dismissed. Any idea why this might have happened and the right way to do so?
I had tried presenting a UIPopoverController on a viewWillAppear on a view presented via
Share
Don’t do any view handling in
-viewWillAppear, because there is no guarantee that the view has loaded. Move all implementations into-viewDidAppearfor safer execution.