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

UI locked #3

Open
andresdsep opened this issue Jun 12, 2015 · 1 comment
Open

UI locked #3

andresdsep opened this issue Jun 12, 2015 · 1 comment

Comments

@andresdsep
Copy link

Sometimes when dismissing the popup, the UI will become unresponsive. I think something might be covering it up (not completely Disposed() off in DismissAnimated) but I haven't been able to confirm. Can you shed some light?

This is how I'm calling the popup:

var confirmPopup = new SIAlertView(config.Title ?? String.Empty, config.Message);
Action<bool> buttonAction = ok =>
{
    _activeDialog.DismissAlertDialog();
    config.OnConfirm(ok);
};
confirmPopup.AddButton(config.CancelText, SIAlertViewButtonType.Cancel, () => buttonAction(false));
confirmPopup.AddButton(config.OkText, SIAlertViewButtonType.Default, () => buttonAction(true));
confirmPopup.TransitionStyle = SIAlertViewTransitionStyle.Fade;

confirmPopup.Show();

Sometimes I will programatically close it like:

if (_alertDialog != null)
{
    _alertDialog.DismissAnimated(true, true);
}
_alertDialog = null;
@jsauve
Copy link
Owner

jsauve commented Jun 12, 2015

I never got to the bottom of this. It seems that manual creation and
management of UIWindows is somewhat tricky. They're mainly intended for the
operating system itself to manage on its own. But I could be wrong. I just
remember reading lots of things back then (and observing during debugging)
that the UIWindow collection should not be messed with. Sorry I'm not more
help on this right now. Maybe I'll get back to looking at this again at
some point.
On Jun 11, 2015 10:30 PM, "Andres Sepulveda" [email protected]
wrote:

Sometimes when dismissing the popup, the UI will become unresponsive. I
think something might be covering it up (not completely Disposed() off in
DismissAnimated) but I haven't been able to confirm. Can you shed some
light?


Reply to this email directly or view it on GitHub
#3.

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