Browse Source

Merge pull request #42 from EuanChan/master

bugfix: YYLabel setAttributedText: should call textParser to update
Yaoyuan 9 năm trước cách đây
mục cha
commit
a6b9d5fb7a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      YYText/YYLabel.m

+ 4 - 0
YYText/YYLabel.m

@@ -719,6 +719,10 @@ static dispatch_queue_t YYLabelGetReleaseQueue() {
             } break;
             default: break;
         }
+
+        if (_textParser)
+            [_textParser parseText:_innerText selectedRange:NULL];
+        
     } else {
         _innerText = [NSMutableAttributedString new];
     }