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

大神 UIAlertController 使用失效了 是怎么回事呢 #979

Open
SirSai opened this issue Nov 30, 2022 · 0 comments
Open

大神 UIAlertController 使用失效了 是怎么回事呢 #979

SirSai opened this issue Nov 30, 2022 · 0 comments

Comments

@SirSai
Copy link

SirSai commented Nov 30, 2022

[messageAttribute yy_setTextHighlightRange:[msg rangeOfString:redMsg] color:[UIColor colorConvertFromString:@"#999999"] backgroundColor:[UIColor clearColor] tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) {
[weakSelf sendOrderGuide];
}];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:@"" preferredStyle:UIAlertControllerStyleAlert];
[alert setValue:messageAttribute forKey:@"attributedMessage"];

创建一个 UIAlertController
使用 attributedMessage 给 UIAlertController 设置msg
点击事件无响应

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