We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
YYKit 版本 1.0.9 `NSArray * chars = @[@"测",@"试",@"测",@"试",@"测",@"试",@"测",@"试",@"测",@"试"];
for (int i = 0; i < chars.count; i++) { NSString * tempString = chars[i]; NSLog(@"%@",tempString); NSMutableAttributedString * tempAttribute = [[NSMutableAttributedString alloc] initWithString:tempString]; tempAttribute.font = UIFontMake(20); tempAttribute.color = UIColorMakeWithHex(@"#B4B4B4"); UIColor * fillColor = i % 2 == 1 ? UIColorRed : UIColorBlue; YYTextBorder *border = [YYTextBorder borderWithFillColor:fillColor cornerRadius:10]; border.insets = UIEdgeInsetsMake(-2, -2, -2, -2); tempAttribute.textBorder = border; [interval appendAttributedString:tempAttribute]; } interval.lineSpacing = 5; interval.lineBreakMode = NSLineBreakByWordWrapping;`
The text was updated successfully, but these errors were encountered:
这种需求应该使用TextBackgroundBorder属性
Sorry, something went wrong.
使用TextBackgroundBorder也是有问题
No branches or pull requests
YYKit 版本 1.0.9
`NSArray * chars = @[@"测",@"试",@"测",@"试",@"测",@"试",@"测",@"试",@"测",@"试"];
The text was updated successfully, but these errors were encountered: