文章来源:淘论文网   发布者: 毕业设计   浏览量: 28



还可以点击去查询以下关键词:
[仿微]    [定制]    [下拉]    [提示]    [iOS开发 仿微博定制的下拉提示框]   

项目介绍:

TSSCrollStatusBar 是一个仿微博的下拉提示,大概效果如图

0. 实现功能

通过分类加属性,给UIScrollView添加了属性ts_scrollStatusBar,来显示和微博下拉刷新类似的下拉提示效果

可以多行

可以动态切换文案

更多功能有待完善

1. 原理

通过给UIScrollView 写分类,在分类中添加属性,并实现 set 和 get 方法来给UIScrollView 添加了属性 :

@property (strong, nonatomic) TSScrollStatusBar * ts_scrollStatusBar; 2. 控件封装

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; 3. 更多功能正在完善中

比如加点击事件等...
GIT地址

开题报告开题报告

这里还有:


还可以点击去查询:
[仿微]    [定制]    [下拉]    [提示]    [iOS开发 仿微博定制的下拉提示框]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/3739.docx
  • 上一篇:Swift4.0 图标框架 支持折线图,散点图,柱状图,扇形图
  • 下一篇:WKWebView实现定制js交互 JS-OC-WebView