Skip to content

__weak RMUniversalAlert *weakAlert = alert 的bug #25

@cdoky

Description

@cdoky
alert.alertController = [UIAlertController showAlertInViewController:viewController
                                                           withTitle:title message:message
                                                   cancelButtonTitle:cancelButtonTitle
                                              destructiveButtonTitle:destructiveButtonTitle
                                                   otherButtonTitles:otherButtonTitles
                                                            tapBlock:^(UIAlertController *controller, UIAlertAction *action, NSInteger buttonIndex){
                                                                if (tapBlock) {
                                                                    //the var ‘weakAlert’ is nil
                                                                    tapBlock(alert, buttonIndex);
                                                                    alert = nil;
                                                                }
                                                            }];

i think you can do this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions