• Stars
    star
    207
  • Rank 189,769 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A scroll animation for display number for iOS

JTNumberScrollAnimatedView

CI Status Version License Platform

Use JTNumberScrollAnimatedView for have a nice animation for display number. It's easy to use, easy to customize.

Installation

With CocoaPods, add this line to your Podfile.

pod 'JTNumberScrollAnimatedView', '~> 1.0'

Screenshots

Example

Usage

Basic usage

You can use JTNumberScrollAnimatedView like a normal view.

#import <UIKit/UIKit.h>

#import "JTNumberScrollAnimatedView.h"

@interface ViewController : UIViewController

@property (weak, nonatomic) IBOutlet JTNumberScrollAnimatedView *animatedView;

@end

You just have to call setValue with a NSNumber and use startAnimation for launch the animation.

- (void)viewDidLoad
{
    [super viewDidLoad];
        
    [self.animatedView setValue:@249];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    [self.animatedView startAnimation];
}

WARNING

For now the value must be a positive integer.

Customization

You can easily change some properties of the animation. Each caracter have its own column.

  • textColor
  • font
  • duration, default to 1.5
  • durationOffset, delay between the end of the animation of each column, default to 0.2
  • density, number of characters added by column for the animation, default to 5
  • minLength, you can force the minimum count of columns, default to 0
  • isAscending, the direction of the scroll, default to NO

If you change one of this properties, you have to call setValue for update the view.

Requirements

  • iOS 7 or higher
  • Automatic Reference Counting (ARC)

Author

License

JTNumberScrollAnimatedView is released under the MIT license. See the LICENSE file for more info.

More Repositories

1

JTCalendar

A customizable calendar view for iOS.
Objective-C
2,763
star
2

JTMaterialTransition

An iOS transition for controllers based on material design.
Swift
961
star
3

JT3DScrollView

ScrollView with custom effects during the scroll for iOS
Shell
491
star
4

JTHamburgerButton

An animated hamburger button for iOS.
Objective-C
350
star
5

JTMaterialSpinner

An iOS material design spinner view
Swift
129
star
6

JTSlideShadowAnimation

A shadow animation effect for iOS
Objective-C
88
star
7

JTImageLabel

JTImageLabel keeps a UILabel and a UIImageView side by side on iOS.
Objective-C
79
star
8

JTTableViewController

A ViewController for manage pagination and loaders for iOS.
Swift
61
star
9

JTBorderDotAnimation

A simple animation with dots turning around a UIView for iOS
Objective-C
56
star
10

flutter_cast

Dart package to discover and connect with Chromecast devices
Dart
42
star
11

jt-rails-address

Postal addresses management in Ruby On Rails and Javascript
Ruby
41
star
12

JTScrollViewController

Create a ScrollViewController on iOS pragmatically using Auto Layout without a nib file.
Objective-C
31
star
13

flutter_brother_printer

Objective-C
11
star
14

jt-translator-ios

Remotely manage your translations on iOS
Swift
8
star
15

spotify-playlist

Remove the songs added to the playlist "Remove from spotify" from every playlists
Ruby
6
star
16

BRLMPrinterKit

Pod for the BRLMPrinterKit / Brother's printers
Objective-C
4
star
17

jt-rails-generator-user

Generate a scaffold for user authentication in Ruby On Rails.
Ruby
4
star
18

JTHelper

List of common helpers for iOS projects
Objective-C
3
star
19

SUPINFO-B3-iOS

Objective-C
3
star
20

jt-rails-meta

Manage HTML meta tags for SEO in Ruby On Rails
Ruby
3
star
21

vagrant-rails-dev

Vagrant file for Ruby On Rails development
Shell
3
star
22

jt-rails-toolbox

Common libs used for Ruby On Rails development.
Ruby
2
star
23

paperclip-storage-http

HTTP storage support for paperclip.
Ruby
2
star
24

base-static-site

Base scaffold for simple static website using compression and minification
Shell
2
star
25

jt-rails-tokenizable

Token generation for ActiveRecord models in Ruby On Rails
Ruby
2
star
26

chrome-password-reminder

Chrome extension password reminder
JavaScript
2
star
27

omniauth-gocardless-oauth2

OmniAuth Strategy for GoCardless via OAuth2
Ruby
2
star
28

flutter_socket_mobile

Java
1
star