Kofktu / KUIPopOver

Easy to use PopOver in iOS
MIT License
583 stars 37 forks source link

Using popped-up viewController as local property leads to error #28

Open cool8jay opened 8 months ago

cool8jay commented 8 months ago

Here is my test project.

I use a viewController as a local property(to keep some info when it is opened again). But if I click the trigger button very fast. An error happens:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modal view controller on itself. Presenting controller is <testPopup.TipViewController: 0x103c12e40>.'

Test project is here.

testPopup.zip