Browse Source

updated readme

ibireme 9 năm trước cách đây
mục cha
commit
b13c554f90
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      README.md

+ 2 - 2
README.md

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