![](https://img.haomeiwen.com/i1286371/40723a2efa2492c3.png)
有两点有注意:
1.使用有链接协议时,控件宽度要大一些,比如字体是14,宽度要设为28,否则显示有问题
2.对默认字体颜色textColor最好设置在协议颜色NSDictionary *linkAttributes = @{NSForegroundColorAttributeName:[UIColor colorWithRGBString:@"#151515"]};之后,否则如果两种颜色相似会有问题。
有两点有注意:
1.使用有链接协议时,控件宽度要大一些,比如字体是14,宽度要设为28,否则显示有问题
2.对默认字体颜色textColor最好设置在协议颜色NSDictionary *linkAttributes = @{NSForegroundColorAttributeName:[UIColor colorWithRGBString:@"#151515"]};之后,否则如果两种颜色相似会有问题。
本文标题:UITextView使用
本文链接:https://www.haomeiwen.com/subject/jhduvftx.html
网友评论