Skip to content

PoisonousMilk/PMElasticRefresh

Repository files navigation

PMElasticRefresh

LICENSE  BLOG 

详细的实现请查看博客弹性下拉刷新控件PMElasticRefresh

Use elastic animation to make refresh more funny.

动画效果

Installtion

Download and run the Demo. When we make the PMElasticRefresh move perfected, We will support CocoaPods.

Usage

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];

Changelog

v 0.0.2 add Block to deal Refresh

v 0.0.1 first commit

Licence

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 文件。

About

Elastic Refresh Animation / 弹性刷新动画

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors