isaaclimdc / ILAlertView

iOS alerts with a customizable appearance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dismiss the ALert when push segue

tuandao opened this issue · 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.

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

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.

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.

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.

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?

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.