Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss the ALert when push segue #5

Open
tuandao opened this issue Jun 5, 2013 · 6 comments
Open

Dismiss the ALert when push segue #5

tuandao opened this issue Jun 5, 2013 · 6 comments

Comments

@tuandao
Copy link

tuandao commented Jun 5, 2013

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
Copy link
Author

tuandao commented Jun 6, 2013

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

@isaaclimdc
Copy link
Owner

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.

@tuandao
Copy link
Author

tuandao commented Jun 8, 2013

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.

@isaaclimdc
Copy link
Owner

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.

@tuandao
Copy link
Author

tuandao commented Jun 10, 2013

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?

@isaaclimdc
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants