代码拉取完成,页面将自动刷新
通过分类加属性,给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;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型