-
Notifications
You must be signed in to change notification settings - Fork 81
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
main thread blocking #24
Comments
when i add a time delay, it works fine. I am not find the real reason . but hope you fix the bug! |
Thanks, I will fix it ASAP. |
Were you able to fix the bug?? I'm having a lot of problems with this... The dispatch_after method seemed to work, but now I'm getting double alertviews to show for a second before the first one disappears... |
@jlubeck I found a workaround for this bug. I instantiated my alert view inside a dispatch_after method. See below: dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
when i use it like this,
CXAlertView * alert=[[CXAlertView alloc] initWithTitle:@"warning" message:message cancelButtonTitle:@"cancel"];
[alert addButtonWithTitle:@"continue" type:CXAlertViewButtonTypeDefault handler:^(CXAlertView *alertView, CXAlertButtonItem *button) {
CXAlertView * secondeAlertView=[[CXAlertView alloc] initWithTitle:@"XX" message:@"xxxxxxxxxxxx" cancelButtonTitle:@"sure"];
[secondeAlertView show];
[alertView dismiss];
}];
when i click 'sure' button , the main thread is blocking. i can't touch my view any more!
can you fix the bug ?
The text was updated successfully, but these errors were encountered: