iOS文字上下滚动效果的实现
2016-06-15 10:37
811 查看
最近有一个文字上下滚动的需求,简单写了一下。
@class GYChangeTextView;
@protocol GYChangeTextViewDelegate <NSObject>
- (void)gyChangeTextView:(GYChangeTextView *)textView didTapedAtIndex:(NSInteger)index;
@end
@interface GYChangeTextView : UIView
@property (nonatomic, assign) id<GYChangeTextViewDelegate> delegate;
- (void)animationWithTexts:(NSArray *)textAry;
- (void)stopAnimation;
@end
代码传到了github上,https://github.com/iOSGongyu/GYChangeTextViewDemo,感兴趣的可以下载看看,如果对你有帮助的话,记得star一下。
@class GYChangeTextView;
@protocol GYChangeTextViewDelegate <NSObject>
- (void)gyChangeTextView:(GYChangeTextView *)textView didTapedAtIndex:(NSInteger)index;
@end
@interface GYChangeTextView : UIView
@property (nonatomic, assign) id<GYChangeTextViewDelegate> delegate;
- (void)animationWithTexts:(NSArray *)textAry;
- (void)stopAnimation;
@end
代码传到了github上,https://github.com/iOSGongyu/GYChangeTextViewDemo,感兴趣的可以下载看看,如果对你有帮助的话,记得star一下。
相关文章推荐
- IOS 富文本 ,设置行间距、字间距,计算高度(转载组合而成)
- GCD介绍(三)-Dispatch Sources
- iOS 开发工具
- iOS 开发过程中遇到的Bug和Warning收录(持续更新)
- 使用Xcode检测循环引用
- iOS 如何优雅的处理“回调地狱Callback hell”(一) (下)
- iOS 如何优雅的处理“回调地狱Callback hell”(一) (上)
- IOS开发之----常用函数和常数
- 自定义iOS7导航栏背景,标题和返回按钮文字颜色
- iOS plist文件转换为NSMutableArray
- 怎样在 Mac 上打开 ~_Library 文件夹
- iOS开发小记(十三)
- performSelector 那点事
- iOS,NSPredicate筛选NsmutableArray
- IOS中对图片进行重绘处理的方法总结
- iOS跳转延迟,跳转隐藏tabbar
- iOS - CGAffineTransform属性
- iOS View 加载子视图ViewController
- iOS,scrollview手势冲突
- iOS开发零基础教程之真机调试流程