KLCPopup
KLCPopup copied to clipboard
dismiss not working with iOS 8, Swift
Hey,
Not sure if it is a bug or I am doing something wrong.
I got this code:
var loadingPopupView = KLCPopup(contentView: LoadingIndicatorPopupView(), showType: KLCPopupShowType.BounceIn, dismissType: KLCPopupDismissType.BounceOut, maskType: KLCPopupMaskType.Dimmed, dismissOnBackgroundTouch: false, dismissOnContentTouch: true)
loadingPopupView.show()
loadingPopupView.dismiss(true)
loadingPopupView.dismiss(false)
KLCPopup.dismissAllPopups()
popup shows but is never hidden. I got another popup which is dismissed via self.dismissPresentingPopup() from inside the view and that seem to work. But when I am trying to dismiss it from outside - it never gets dismissed.
because of dismissOnContentTouch: true it is dismissed by touching on content.
Any ideas ?
+1
try self.dismissPresentingPopup() in your extended UIView class.