소스 검색

Update README.md

Jobs 9 년 전
부모
커밋
7d0f31b45e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -263,7 +263,7 @@ Usage
     // 2. Set attributes to text, you can use almost all CoreText attributes.
     text.yy_font = [UIFont boldSystemFontOfSize:30];
     text.yy_color = [UIColor blueColor];
-    [text yy_setColor:[UIColor redColor] range:NSmakeRange(0, 4)];
+    [text yy_setColor:[UIColor redColor] range:NSMakeRange(0, 4)];
     text.yy_lineSpacing = 10;
     
     // 3. Set to YYLabel or YYTextView.
@@ -802,7 +802,7 @@ YYText 和 TextKit 架构对比
     // 2. 为文本设置属性
     text.yy_font = [UIFont boldSystemFontOfSize:30];
     text.yy_color = [UIColor blueColor];
-    [text yy_setColor:[UIColor redColor] range:NSmakeRange(0, 4)];
+    [text yy_setColor:[UIColor redColor] range:NSMakeRange(0, 4)];
     text.yy_lineSpacing = 10;
     
     // 3. 赋值到 YYLabel 或 YYTextView