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

- (void)yy_setAttribute:(NSString *)name value:(id)value range:(NSRange)range 崩溃问题 #993

Open
samllOranges opened this issue Nov 24, 2023 · 1 comment

Comments

@samllOranges
Copy link

项目中出现了一些崩溃,就设置个color,font等都会与崩溃,偶现,例如
NSMutableAttributedString * attributing = [[NSMutableAttributedString alloc] init];
NSMutableAttributedString * nameString = [[NSMutableAttributedString alloc] initWithString:@"𝐊𝐇 ⁵ ¹ ¹ F²"];
nameString.yy_color = [UIColor whiteColor];//这句代码进去,最终蹦到- (void)yy_setAttribute:(NSString *)name value:(id)value range:(NSRange)range里面,有大神知道怎么解决吗?
image

@weilihua
Copy link

项目中出现了一些崩溃,就设置个color,font等都会与崩溃,偶现,例如 NSMutableAttributedString * attributing = [[NSMutableAttributedString alloc] init]; NSMutableAttributedString * nameString = [[NSMutableAttributedString alloc] initWithString:@"𝐊𝐇 ⁵ ¹ ¹ F²"]; nameString.yy_color = [UIColor whiteColor];//这句代码进去,最终蹦到- (void)yy_setAttribute:(NSString *)name value:(id)value range:(NSRange)range里面,有大神知道怎么解决吗? image

你这个问题解决了吗?

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