diff --git a/FRHyperLabel/FRHyperLabel.m b/FRHyperLabel/FRHyperLabel.m index 4cc533f..cc1a56b 100644 --- a/FRHyperLabel/FRHyperLabel.m +++ b/FRHyperLabel/FRHyperLabel.m @@ -68,6 +68,18 @@ - (void)checkInitialization { } } +#pragma mark - override + +- (void)setAttributedText:(NSAttributedString *)attributedText { + _boundingBox = CGRectZero; + [super setAttributedText:attributedText]; +} + +- (void)setText:(NSString *)text { + _boundingBox = CGRectZero; + [super setText:text]; +} + #pragma mark - APIs - (void)clearActionDictionary {