(Translated by https://www.hiragana.jp/)
GitHub - xiaohange/JQScrollNumberLabel: JQScrollNumberLabel:仿tumblr热度滚动数字条数, 一个显示数字的控件,当你改变其数字时,能够有滚动的动画,同时动画和位数可以限制,动态创建和实例化可选,字体样式自定义等。
Skip to content

JQScrollNumberLabel:仿tumblr热度滚动数字すうじじょうすう, 一个显示数字的控件,とう你改变其数字すうじ时,のう够有滚动てき动画,どう时动すう以限せい,动态创建实例选,字体じたい样式てい义等。

License

Notifications You must be signed in to change notification settings

xiaohange/JQScrollNumberLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JQScrollNumberLabel

简介:

JQScrollNumberLabel 仿tumblr热度滚动数字すうじじょうすう,一个显示数字的控件,とう你改变其数字すうじ时,のう够有滚动てき动画,どう时动すう以限せい,动态创建实例选,字体じたい样式てい义等とう

ほんひかえけん核心かくしんさいようりょうこう友代ともよつちかえてき核心かくしんだい码,さら样式请看: https://github.com/948080952/DPScrollNumberLabel

JQScrollNumberLabel imitation Tumblr heat rolling digital number, a digital display controls, when you change the numbers, to scroll animation and animation and number restrictions, dynamically create and instantiate the optional custom font style, etc..

效果こうか展示てんじ

きりせいすう:Limit digit

动态创建すう:Dynamic creation bit

仿Tumblrちゅうてき热度-滚动数字すうじ:Imitation Tumblr in the heat - rolling number

How to use?

はたJQScrollNumberLabelぶんけん夹中てき两个ぶんけん复制进工ほどざい需要じゅよう使用しようてき地方ちほう导入头文けん

The JQScrollNumberLabel folder to copy the two files into the project, where you need to import the header file

#import "JQScrollNumberLabel.h"

@interface ViewController ()

@property (nonatomic, strong)JQScrollNumberLabel *scrollLabel;

@end

はつはじめてき方法ほうほう传人字体じたい大小だいしょうあるいち个字たい不要ふよう设置其frame,ただ需改变其位置いちそくいん为它すえ字体じたい大小だいしょう动计さん自身じしんてき大小だいしょうわかそう动态设置すう不要ふよう带rowNumberさんすうそく

A method to initialize the descendants of font size or a font, do not set the frame, only need to change its position, because it is based on the automatic calculation of the size of its font size, to dynamically set the number of parameters to don't take rowNumber:

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.scrollLabel = [[JQScrollNumberLabel alloc] initWithNumber:@(1) font:[UIFont fontWithName:@"AppleSDGothicNeo-SemiBold" size:40] textColor:[UIColor grayColor] rowNumber:5];
    
    self.scrollLabel.frame = CGRectMake(100, 100, self.scrollLabel.frame.size.width, self.scrollLabel.frame.size.height);
    
    [self.view addSubview:self.scrollLabel];
    
}
@end

とうそうようあらため变其すう值时,调用下面かめん方法ほうほうそく,とうanimatedさんすう为NO时不かい播放动画

When you want to change the value, call the following method, when the animated parameter is NO will not play animation

[self.scrollLabel changeToNumber:@(10) animated:YES];

QT

  • 1.目前もくぜん还不支持しじ负数てき显示

  • 2.显示てきすう有限ゆうげんせい最大さいだい8

Consultation

iOS开发しゃ交流こうりゅうぐん:446310206 欢就❤️❤️❤️starいち吧!你的支持しじわが更新こうしんてき动力! Love is every every every star! Your support is my renewed motivation!

Other

JQTumblrHud-こう仿Tumblr App 指示しじhud

JQScrollNumberLabel:仿tumblr热度滚动数字すうじじょうすう

TumblrLikeAnimView-仿Tumblrてん赞动效果こうか

JQMenuPopView-仿Tumblr弹出视图发音频、视频、图片、文字もじてき视图

License

This code is distributed under the terms and conditions of the MIT license.

About

JQScrollNumberLabel:仿tumblr热度滚动数字すうじじょうすう, 一个显示数字的控件,とう你改变其数字すうじ时,のう够有滚动てき动画,どう时动すう以限せい,动态创建实例选,字体じたい样式てい义等。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published