YYText icon indicating copy to clipboard operation
YYText copied to clipboard

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

Open SirSai opened this issue 2 years ago • 0 comments

[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 点击事件无响应

SirSai avatar Nov 30 '22 09:11 SirSai