Browse Source

bugfix: YYLabel setAttributedText: havn't call textParser to update label.

EuanChan 9 years ago
parent
commit
90fd5608bc
1 changed files with 4 additions and 0 deletions
  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];
     }