Browse Source

updated readme

ibireme 9 years ago
parent
commit
b13c554f90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -276,7 +276,7 @@ Usage
     
     YYTextView *textView = [YYTextiew new];
     textView.frame = ...
-    label.attributedString = text;
+    textView.attributedString = text;
     
 ### Text highlight
     
@@ -742,7 +742,7 @@ YYText 和 TextKit 架构对比
     
     YYTextView *textView = [YYTextiew new];
     textView.frame = ...
-    label.attributedString = text;
+    textView.attributedString = text;
     
 ### 文本高亮