Explorar o código

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

EuanChan %!s(int64=9) %!d(string=hai) anos
pai
achega
90fd5608bc
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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];
     }