Skip to content

Commit 7d0f31b

Browse files
committed
Update README.md
1 parent dcd64b2 commit 7d0f31b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Usage
263263
// 2. Set attributes to text, you can use almost all CoreText attributes.
264264
text.yy_font = [UIFont boldSystemFontOfSize:30];
265265
text.yy_color = [UIColor blueColor];
266-
[text yy_setColor:[UIColor redColor] range:NSmakeRange(0, 4)];
266+
[text yy_setColor:[UIColor redColor] range:NSMakeRange(0, 4)];
267267
text.yy_lineSpacing = 10;
268268

269269
// 3. Set to YYLabel or YYTextView.
@@ -802,7 +802,7 @@ YYText 和 TextKit 架构对比
802802
// 2. 为文本设置属性
803803
text.yy_font = [UIFont boldSystemFontOfSize:30];
804804
text.yy_color = [UIColor blueColor];
805-
[text yy_setColor:[UIColor redColor] range:NSmakeRange(0, 4)];
805+
[text yy_setColor:[UIColor redColor] range:NSMakeRange(0, 4)];
806806
text.yy_lineSpacing = 10;
807807

808808
// 3. 赋值到 YYLabel 或 YYTextView

0 commit comments

Comments
 (0)