Skip to content

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

Description

@niteshborad

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions