KLCPopup icon indicating copy to clipboard operation
KLCPopup copied to clipboard

dismiss not working with iOS 8, Swift

Open Katafalkas opened this issue 11 years ago • 2 comments

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 ?

Katafalkas avatar Jan 02 '15 12:01 Katafalkas

+1

vsouza avatar May 15 '16 21:05 vsouza

try self.dismissPresentingPopup() in your extended UIView class.

vsouza avatar May 15 '16 22:05 vsouza