TSSCrollStatusBar 介绍
TSSCrollStatusBar 是一个仿微博的下拉提示,大概效果如图
通过分类加属性,给UIScrollView添加了属性ts_scrollStatusBar,来显示和微博下拉刷新类似的下拉提示效果
-
可以多行
-
可以动态切换文案
-
更多功能有待完善
通过给UIScrollView 写分类,在分类中添加属性,并实现 set 和 get 方法来给UIScrollView 添加了属性 :
@property (strong, nonatomic) TSScrollStatusBar * ts_scrollStatusBar;
TSScrollStatusBar 带有万能创建方法,展示,隐藏方法,切换文案方法
//万能初始化- (instancetype)initWithFrame:(CGRect)frame andShowTime:(CGFloat)showTime andStayTime:(CGFloat)stayTime andDismissTime:(CGFloat)dismissTime andBackColor:(UIColor *)backColor andTextColor:(UIColor *)textColor andAlpha:(CGFloat)alpha andTextFont:(CGFloat)textFont andString:(NSString *)string;//展示 - (void)showWithAuthHidden:(BOOL)autoHidden andAnimation:(BOOL) animation;//隐藏- (void)dismissWithAnimation:(BOOL) animation;//切换文案- (BOOL)configWithString:(NSString *)string;
- 比如加点击事件等…
TSSCrollStatusBar 官网
https://gitee.com/tsnumidc/TSSCrollStatusBar
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。