测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最新发布 | 2016年7月 |
由Uzysjung macAir维护。
用简单的代码将动画 GIF 拉刷新功能添加到任意 scrollView 中
UzysAnimatedGifPullToRefresh 特性
#import "UIScrollView+UzysAnimatedGifPullToRefresh.h"
添加 PullToRefreshActionHandler
- (void)viewDidLoad
{
__weak typeof(self) weakSelf =self;
[self.tableView addPullToRefreshActionHandler:^{
typeof(self) strongSelf = weakSelf;
[strongSelf insertRowAtTop];
}
ProgressImagesGifName:@"[email protected]"
LoadingImagesGifName:@"[email protected]"
ProgressScrollThreshold:60
LoadingImageFrameRate:30];
}
[_tableView triggerPullToRefresh];
[_tableView stopRefreshAnimation];
- (void)addPullToRefreshActionHandler:(actionHandler)handler
ProgressImagesGifName:(NSString *)progressGifName
LoadingImagesGifName:(NSString *)loadingGifName
ProgressScrollThreshold:(NSInteger)threshold;
- (void)addPullToRefreshActionHandler:(actionHandler)handler
ProgressImagesGifName:(NSString *)progressGifName
ProgressScrollThreshold:(NSInteger)threshold;
- (void)addPullToRefreshActionHandler:(actionHandler)handler
ProgressImages:(NSArray *)progressImages
ProgressScrollThreshold:(NSInteger)threshold;
- (void)addPullToRefreshActionHandler:(actionHandler)handler
ProgressImages:(NSArray *)progressImages
LoadingImages:(NSArray *)loadingImages
ProgressScrollThreshold:(NSInteger)threshold
LoadingImagesFrameRate:(NSInteger)lframe;
[self.tableView addTopInsetInPortrait:64 TopInsetInLandscape:52];
// iOS 7 LandScape Navigationbar size 52 , Portrait Navigationbar size 64
self.navigationController.navigationBar.translucent= NO;
[self.tableView addTopInsetInPortrait:0 TopInsetInLandscape:0];
此应用使用了以下第三方库:
版权所有 (c) 2014 Mattt Thompson (http://mattt.me)
特此免费授予任何获得此软件及其相关文档副本(以下简称“软件”)的人士,在不受限制的情况下处理该软件的权利,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/or 销售软件副本,并允许软件提供接收方据此进行上述操作,前提是遵守以下条件
上述版权声明和免责声明应包含在软件的所有副本或主要部分中。
软件按“现状”提供,不提供任何明示或暗示的保证,包括但不限于适销性、特定用途的适用性和非侵权性保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,不论此类责任是由于合同、侵权或其他原因引起的,也不论此类索赔、损害或其他责任是否与软件无关、源于软件或与软件有关,或与软件的使用或其他处理有关。