详细的实现请查看博客弹性下拉刷新控件PMElasticRefresh
Use elastic animation to make refresh more funny.
Download and run the Demo. When we make the PMElasticRefresh move perfected, We will support CocoaPods.
Import header file:
#import "PMElasticRefresh.h"Inital and use pm_RefreshHeaderWithBlock: to add refresh header
self.mainTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
[self.mainTableView pm_RefreshHeaderWithBlock:^{
NSLog(@"refreshBlock");
}];
[self.view addSubview:self.mainTableView];End refresh
[self.mainTableView endRefresh];v 0.0.2 add Block to deal Refresh
v 0.0.1 first commit
PMElasticRefresh is provided under the MIT license. See LICENSE file for details.
=================
使用弹性动画让刷新变的更有趣。
下载并运行这个Demo。当我们把PMElasticRefresh变的更完善的时候,会发布到CocoaPods上。
导入头文件:
#import "PMElasticRefresh.h"初始化并调用pm_RefreshHeaderWithBlock:来加上刷新头
self.mainTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
[self.mainTableView pm_RefreshHeaderWithBlock:^{
NSLog(@"refreshBlock");
}];
[self.view addSubview:self.mainTableView];结束刷新
[self.mainTableView endRefresh];v 0.0.2 加入Block进行回调刷新
v 0.0.1 首次提交
PMElasticRefresh 使用 MIT 许可证,详情见 LICENSE 文件。
