All Projects → xiaohange → JQScrollNumberLabel

xiaohange / JQScrollNumberLabel

Licence: MIT License
JQScrollNumberLabel:仿tumblr热度滚动数字条数, 一个显示数字的控件,当你改变其数字时,能够有滚动的动画,同时动画和位数可以限制,动态创建和实例化可选,字体样式自定义等。

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to JQScrollNumberLabel

TumblrLikeAnimView
仿Tumblr点赞动画效果 (心放大,心破碎效果)iOS开发者交流群:446310206
Stars: ✭ 19 (-34.48%)
Mutual labels:  tumblr, tumblr-api, tumblr-blog, tumblr-theme
Loglr
A project to enable 'Login using Tumblr' a breeze.
Stars: ✭ 18 (-37.93%)
Mutual labels:  tumblr, tumblr-api
TumblTwo
TumblTwo, an Improved Fork of TumblOne, a Tumblr Downloader.
Stars: ✭ 57 (+96.55%)
Mutual labels:  tumblr, tumblr-blog
tumblr-likes-downloader
Download liked posts with Node.js by fetching Tumblr API
Stars: ✭ 21 (-27.59%)
Mutual labels:  tumblr, tumblr-api
SIRIWaveView
Siri like wave view for android
Stars: ✭ 65 (+124.14%)
Mutual labels:  customview
humhub-oauth
Social OAuths built for the Social Platform HumHub
Stars: ✭ 16 (-44.83%)
Mutual labels:  tumblr
ShaderView
ShaderView is an Android View that makes it easy to use GLSL shaders for your app. It's the modern way to use shaders for Android instead of RenderScript.
Stars: ✭ 53 (+82.76%)
Mutual labels:  customview
DottedView
Drawing Dots in android
Stars: ✭ 13 (-55.17%)
Mutual labels:  customview
CustomEditText
Simple Custom EditText for Android like Instagram
Stars: ✭ 23 (-20.69%)
Mutual labels:  customview
RotatableAutofitEditText
Extended EditText which allows to move, rotate and resize text at the same time
Stars: ✭ 51 (+75.86%)
Mutual labels:  customview
GraphiPy
GraphiPy: Universal Social Data Extractor
Stars: ✭ 61 (+110.34%)
Mutual labels:  tumblr-api
PaperView
PaperView 是一个自定义的View,它就像一张纸折叠和展开
Stars: ✭ 26 (-10.34%)
Mutual labels:  customview
AndroidJoyStickView
This library lets you create joystick with some customization for android
Stars: ✭ 45 (+55.17%)
Mutual labels:  customview
visual-references
A list of visual references that make me immensely happy.
Stars: ✭ 34 (+17.24%)
Mutual labels:  tumblr
JQFlowView
卡片式无限自动轮播图 ,无限/自动轮播,可自定义非当前显示view缩放和透明的特效等;喜欢❤️就star一下吧!
Stars: ✭ 24 (-17.24%)
Mutual labels:  customview
AMXFontAutoScale
⚠️ Experimental automatic cross-device font scaling for UILabel and UITextView.
Stars: ✭ 39 (+34.48%)
Mutual labels:  uilabel
ShowcaseView
ShowcaseView library for Android
Stars: ✭ 196 (+575.86%)
Mutual labels:  customview
EmbeddedScrollView
Embedded UIScrollView for iOS.
Stars: ✭ 55 (+89.66%)
Mutual labels:  uiscrollview
XLRefresh
iOS 下拉刷新工具
Stars: ✭ 25 (-13.79%)
Mutual labels:  uiscrollview
SPScrollNumLabel
No description or website provided.
Stars: ✭ 65 (+124.14%)
Mutual labels:  uilabel

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].