kevin-lyn / STPopup

STPopup provides STPopupController, which works just like UINavigationController in popup style, for both iPhone and iPad. It's written in Objective-C and compatible with Swift.
MIT License
2.6k stars 345 forks source link

Recognizing tap right after dismiss #9

Closed nikilster closed 9 years ago

nikilster commented 9 years ago

Another question - after I dismiss the modal, the next tap (if I tap quickly) isn't registered by the main view controller. Any thoughts on how to fix this? Thanks!

nikilster commented 9 years ago

Did some debugging - I think this is because the view controller is being dismissed with animation - the animation visually finishes before the modal page is removed from the UI View hierarchy / stack. It seems to work if we do

[_containerViewController dismissViewControllerAnimated:NO completion:^{

and dismiss with the viewcontrolleranimated property = NO

kevin-lyn commented 9 years ago

@nikilster that is because the transition has "easeOut" curve, so the animation is not finished even though it looks like finished. You could try to disable the animation curve option.