LGRefreshView 1.0.5

LGRefreshView 1.0.5

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年12月

Grigory Lutkov 维护。



  • 作者
  • Grigory Lutkov

iOS pull to refresh for UIScrollView, UITableView and UICollectionView.

预览

安装

包含源代码

Podfile

platform :ios, '6.0'
pod 'LGRefreshView', '~> 1.0.0'

Cartfile

github "Friend-LGA/LGRefreshView" ~> 1.0.0

用法

在需要使用库的源文件中,导入头文件

#import "LGRefreshView.h"

初始化

你有多种初始化方式

- (instancetype)initWithScrollView:(UIScrollView *)scrollView; // also you can pass UITableView and UICollectionView, becose its subclasses of UIScrollView

更多的初始化方法可以在 LGRefreshView.h 中找到

处理动作

要处理动作,可以使用带有闭包或代理的初始化方法,或在初始化后实现它。

代理

@property (assign, nonatomic) id<LGRefreshViewDelegate> delegate;

- (void)refreshViewRefreshing:(LGRefreshView *)refreshView;

闭包

@property (strong, nonatomic) void (^refreshHandler)(LGRefreshView *refreshView);

通知

这里也有一些你可以添加到 NSNotificationsCenter 的通知

kLGRefreshViewBeginRefreshingNotification;
kLGRefreshViewEndRefreshingNotification;

更多

更多详情,请尝试 Xcode 演示项目 并查看 LGRefreshView.h

许可证

LGRefreshView 采用 MIT 许可证发布。有关详细信息,请参阅 LICENSE