xonegirlz
xonegirlz

Reputation: 8967

check whether animation from modalViewController is finished

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?

Upvotes: 0

Views: 81

Answers (1)

CodaFi
CodaFi

Reputation: 43330

Don't do any view handling in -viewWillAppear, because there is no guarantee that the view has loaded. Move all implementations into -viewDidAppear for safer execution.

Upvotes: 1

Related Questions