cbess/AutoScrollLabel

AutoScrollLabel doesn't show text when text is large

Opened this issue · 0 comments

When I set text which is very large, like more than 300 characters, text doesn't appear on label.

This is how I configured newsLabel AutoScrollLabel. Frame is set from XIB:

- (void) updateNews:(NSString *) news {
    
    self.newsLabel.textColor = [UIColor blackColor];
    self.newsLabel.font = [UIFont systemFontOfSize:14];
    self.newsLabel.labelSpacing = 0.0; // distance between start and end labels
    self.newsLabel.pauseInterval = 0.0; // seconds of pause before scrolling starts again
    self.newsLabel.scrollSpeed = 30; // pixels per second
    self.newsLabel.textAlignment = NSTextAlignmentLeft; // centers text when no auto-scrolling is applied
    self.newsLabel.fadeLength = 12.f;
    self.newsLabel.scrollDirection = CBAutoScrollDirectionLeft;
    
    self.newsLabel.text = news;
}