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

新版本不设置title不会弹出 #22

Open
ivoidcat opened this issue Aug 19, 2019 · 5 comments
Open

新版本不设置title不会弹出 #22

ivoidcat opened this issue Aug 19, 2019 · 5 comments

Comments

@ivoidcat
Copy link

新版本不设置title不会弹出,demo测试可以,放到项目就不行了,新版本不知道为什么不行,换回老版本就可以了,

@SPStore
Copy link
Owner

SPStore commented Aug 20, 2019 via email

@ivoidcat
Copy link
Author

创建的时候我把demo里面的直接复制进去的都不行,源码的地方我改了个地方就可以了,至今不明白原理

    if (!self.customHeaderView) {
        if ((1 || self.attributedTitle.length || self.message.length || self.attributedMessage.length || self.textFields.count || self.image)) {
            [self.alertView addSubview:headerView];
        }
    }

@SPStore
Copy link
Owner

SPStore commented Aug 23, 2019 via email

@ivoidcat
Copy link
Author

SPAlertController *alertController = [SPAlertController alertControllerWithTitle:nil message:nil preferredStyle:SPAlertControllerStyleActionSheet];
alertController.needDialogBlur = _lookBlur;
SPAlertAction *action1 = [SPAlertAction actionWithTitle:@"Default" style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) {
    NSLog(@"点击了Default ");
}];
SPAlertAction *action2 = [SPAlertAction actionWithTitle:@"Destructive" style:SPAlertActionStyleDestructive handler:^(SPAlertAction * _Nonnull action) {
    NSLog(@"点击了Destructive");
}];

@SPStore
Copy link
Owner

SPStore commented Aug 30, 2019 via email

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