diff --git a/TXScrollLabelView/TXScrollLabelView.m b/TXScrollLabelView/TXScrollLabelView.m index a602bb6..37418a1 100644 --- a/TXScrollLabelView/TXScrollLabelView.m +++ b/TXScrollLabelView/TXScrollLabelView.m @@ -209,6 +209,18 @@ + (instancetype)scrollWithTitle:(NSString *)scrollTitle inset:inset]; } +#pragma mark - Deprecated Getter & Setter Methods +/** WILL BE REMOVED IN FUTURE */ +- (void)setTx_scrollContentSize:(CGRect)tx_scrollContentSize{ + _tx_scrollContentSize = tx_scrollContentSize; + self.frame = _tx_scrollContentSize; +} + +- (void)setTx_scrollTitleColor:(UIColor *)tx_scrollTitleColor { + self.scrollTitleColor = tx_scrollTitleColor; +} + + #pragma mark - Getter & Setter Methods - (void)setScrollVelocity:(NSTimeInterval)scrollVelocity { @@ -227,6 +239,11 @@ - (void)setScrollVelocity:(NSTimeInterval)scrollVelocity { } +- (void)setScrollTitleColor:(UIColor *)scrollTitleColor { + _scrollTitleColor = scrollTitleColor; + [self setupTextColor:scrollTitleColor]; +} + - (void)setScrollInset:(UIEdgeInsets)scrollInset { _scrollInset = scrollInset; [self setupSubviewsLayout]; @@ -251,22 +268,11 @@ - (NSArray *)scrollArray { if (_scrollArray) return _scrollArray; return _scrollArray = [self getSeparatedLinesFromLabel]; } - -- (void)setTx_scrollContentSize:(CGRect)tx_scrollContentSize{ - _tx_scrollContentSize = tx_scrollContentSize; - self.frame = _tx_scrollContentSize; -} - - (void)setFrame:(CGRect)frame { [super setFrame:frame]; [self setupSubviewsLayout]; } -- (void)setTx_scrollTitleColor:(UIColor *)tx_scrollTitleColor { - _scrollTitleColor = tx_scrollTitleColor; - [self setupTextColor:tx_scrollTitleColor]; -} - - (void)setTextAlignment:(NSTextAlignment)textAlignment { _textAlignment = textAlignment; self.upLabel.textAlignment = textAlignment;