Skip to content

mudelos/iOS-AutoScrollLabel

 
 

Repository files navigation

iOS-AutoScrollLabel

iOS开发中,实现文字滚动效果

使用步骤: 1.将AutoScrollLabel文件夹导入项目中;
2.需要实现的类导入头文件
#import "AutoScrollLabel.h"

使用方法: AutoScrollLabel *autoScrollLabel = [[AutoScrollLabel alloc]initWithFrame:CGRectMake(0, 44, 100, 21)];
autoScrollLabel.text = @"Hi Mom! How are you? I really ought to write more often.";
autoScrollLabel.center = self.view.center;
autoScrollLabel.textColor = [UIColor blackColor];
[self.view addSubview:autoScrollLabel];

效果图:
效果图

简书详情:http://www.jianshu.com/p/577d3eeb54ec

存在bug:    该工程存在的问题就是从下一级界面返回就不滚动了,所以本人做了一些处理,请大家进去这个链接中,解决该bug了https://github.com/NSLog-YuHaitao/iOSAutoLabel

About

iOS开发中,实现文字滚动效果,类似于跑马灯的效果,但是这个出现返回原页面不滚动问题,该问题已经解决,详情见(https://github.com/NSLog-YuHaitao/iOSAutoLabel)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Objective-C 100.0%