Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoScrollLabel doesn't show text when text is large #58

Open
niteshborad opened this issue Jan 4, 2017 · 0 comments
Open

AutoScrollLabel doesn't show text when text is large #58

niteshborad opened this issue Jan 4, 2017 · 0 comments

Comments

@niteshborad
Copy link

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant