Latest 0.0.1
Homepage https://github.com/Cleveroad/CRRollingLabel
License MIT
Platforms ios 7.0, requires ARC
Authors

CRRollingLabel Awesome

CRRollingLabel provides an animated text change, as a scrolling column. CRRollingLabel is subclass of UILabel, so it supports all functions of UILabel without any additional configuration, but limited to display only numeric values.

Installation

CocoaPods

CRRollingLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:
Add pod 'CRRollingLabel' to your Podfile and run pod install in terminal.

Manually

Add the CRRollingLabel folder to your project. CRRollingLabel uses ARC. If you have a project that doesn’t use ARC, just add the -fobjc-arc compiler flag to the CRRollingLabel files.

Usage

The CRRollingLabel is extremely easy to use. CRRollingLabel is subclass of UILabel, so you do not need any additional configuration.

#import <CRRollingLabel/CRRollingLabel.h>
CRRollingLabel *rollingLabel = [[CRRollingLabel alloc] initWithFrame:CGRectMake(0.f, 0.f, 100.f, 100.f)];
[self.view addSubview:rollingLabel];
rollingLabel.text = @"43";

Changing label value is animated by default, but it is possible to set values without animation. See CRRollingLabel.h file for details.

Limitations

The CRRollingLabel is currently support only one line of text.
The CRRollingLabel is currently limited to work only with numerical values. Non-numeric values are ignored.
The CRRollingLabel currently not working properly with attributedText with different fonts, placed in one NSAttributedString.
The NSLineBreakMode is currently not working properly. Please, use autoshrink instead to achieve the result.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Support

If you have any questions, please contact us for support at [email protected] (email subject: «CRRollingLabel support.»)

or

Use our contacts:

Cleveroad.com

Facebook account

Twitter account

Youtube account

Google+ account

LinkedIn account

Dribbble account

License

CRRollingLabel is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CRRollingLabel",
    "version": "0.0.1",
    "summary": "CRRollingLabel provides an animated text change, as a scrolling column.",
    "description": "CRRollingLabel inherits of UILabel, It supports all functions of UILabel without any additional configuration, but limited to display only numeric values. CRRollingLabel provides an animated text change, as a scrolling column, but have some limitations. The CRRollingLabel is currently support only one line of text and is currently limited to work only with numerical values. Non-numeric values are ignored. The CRRollingLabel currently not working properly with attributedText with different fonts, placed in one NSAttributedString. The NSLineBreakMode is currently not working properly. Please, use autoshrink instead to achieve the result.",
    "homepage": "https://github.com/Cleveroad/CRRollingLabel",
    "license": "MIT",
    "authors": {
        "Prokopiev Nick": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Cleveroad/CRRollingLabel.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "private_header_files": "Pod/Classes/CATextLayer+RollingLabelLayerText.h",
    "public_header_files": "Pod/Classes/CRRollingLabel.h",
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "CRRollingLabel": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This