您的位置:首页 > 移动开发 > IOS开发

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一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: