ILAlertView icon indicating copy to clipboard operation
ILAlertView copied to clipboard

Dismiss the ALert when push segue

Open tuandao opened this issue 12 years ago • 6 comments

Hi,

When popup the alert but not close it, then tap on another button on the screen to push segue to a new screen. The current alert still there.

I want it automate be closed when user go to new screen. Do you know how?

Thanks in advance.

tuandao avatar Jun 05 '13 05:06 tuandao

Do you know any way to put another UIView behind the alert to prevent user action?

tuandao avatar Jun 06 '13 04:06 tuandao

This should not be the case: there already is a view right behind the alert (the dark gray shadow). Can you provide steps / sample code to reproduce this issue? Thanks.

isaaclimdc avatar Jun 06 '13 21:06 isaaclimdc

Let see your current sample project, you have 3 buttons, right?

Tap on "Short Message" button, then popup the alert. Don't close it. Continue tap on "Short Message" again. New Alert will come, but the previous not auto close.

My issue case similar that, the user may not tap on OK button to close the message, but they can tap on another button on the screen, then screen flow will happen, but current alert still there.

May I suggest that we should have an transparency full screen view below the alert (you can do similar as UIAlertView of Apple), that view will lock the screen until user tap on button to close the alert.

tuandao avatar Jun 08 '13 06:06 tuandao

Which version of iOS are you on? Because the way it is right now, there is a full screen view underneath the alert, meaning interaction with controls below it is not possible. I tried reproducing your steps but couldn't get that bug to happen.

isaaclimdc avatar Jun 09 '13 23:06 isaaclimdc

Thanks for your response. I tested on both iOS 5, iOS 6, simulator and device as well. In your code I also can not see the full screen background as well, the size of UIView is also the size of the alert. Are you misunderstand with your another controls?

tuandao avatar Jun 10 '13 10:06 tuandao

This is weird. Is the - showOverlayAnimated: method not being called for you? That is where I'm adding a full-screen translucent UIView. So the layout is always:

Alert


Overlay


Superview

Are you on the latest version? I've tried reproducing your error on the different OSes, without success.

isaaclimdc avatar Jun 12 '13 19:06 isaaclimdc