Skip to content

Commit

Permalink
Bug fixes. (invalid property of scrollTitleColor)
Browse files Browse the repository at this point in the history
  • Loading branch information
tingxins committed Nov 22, 2016
1 parent 2b2f67b commit 107c46b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions TXScrollLabelView/TXScrollLabelView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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];
Expand All @@ -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;
Expand Down

0 comments on commit 107c46b

Please sign in to comment.