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

MTBlockAlertView Convenience Methods cause ucol_getVersion bad_access #6

Open
horstleung opened this issue Jul 17, 2013 · 0 comments
Open

Comments

@horstleung
Copy link

Temporary solved by calling MTBlockAlertView in async way:

+ (void) showWithTitle:(NSString *)title
               message:(NSString *)message
     cancelButtonTitle:(NSString *)cancelButtonTitle
      otherButtonTitle:(NSString *)otherButtonTitle
        alertViewStyle:(UIAlertViewStyle)alertViewStyle
       completionBlock:(void (^)(UIAlertView *alertView, NSInteger buttonIndex))completionBlock {


    dispatch_async(dispatch_get_main_queue(), ^{
        MTBlockAlertView *alertView = [[MTBlockAlertView alloc] initWithTitle:title
                                                                      message:message
                                                            completionHanlder:completionBlock
                                                            cancelButtonTitle:cancelButtonTitle
                                                            otherButtonTitles:otherButtonTitle, nil];

        alertView.alertViewStyle = alertViewStyle;
        [alertView show];
    });
}

I don't know if it is a good way to solve it, but at least it works.

Environment:
iOS6 on iphone 4

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

1 participant