Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

oit63/AutoScrollLabel

Repository files navigation

##AutoScrollLabel

A UILabel with auto scrolling for text that may be clipped by the view. Provides edge fading, speed adjustment, scroll direction, etc.

CocoaPod: AutoScrollLabel

iOS 7 and greater. For Non-ARC use v0.2.1.

#import <AutoScrollLabel/CBAutoScrollLabel.h>

screenshot image

Real world use:

app

Sola Tunes App (Free)

Usage:

autoScrollLabel.text = @"This text may be clipped, but now it will be scrolled.";
autoScrollLabel.textColor = [UIColor blueColor];
autoScrollLabel.labelSpacing = 35; // distance between start and end labels
autoScrollLabel.pauseInterval = 3.7; // seconds of pause before scrolling starts again
autoScrollLabel.scrollSpeed = 30; // pixels per second
autoScrollLabel.textAlignment = UITextAlignmentCenter; // centers text when no auto-scrolling is applied
autoScrollLabel.fadeLength = 12.f; // length of the left and right edge fade, 0 to disable

License

MIT - Copyright (c) 2013 Christopher Bess

About

Provides marquee like UILabel scrolling, think iPod track title scrolling.

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Objective-C 96.3%
  • Ruby 3.7%

AltStyle によって変換されたページ (->オリジナル) /