No description, website, or topics provided.
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
LTRefreshing.xcodeproj
LTRefreshing.xcworkspace
LTRefreshing
LTRefreshingTests
LTRefreshingUITests
Pods
.DS_Store
LTRefreshing.podspec
Podfile
Podfile.lock
README.md

README.md

对MJRefresh进行二次封装、简单易扩展

pod search LTRefreshing

target 'LTRefreshingDemo' do
  use_frameworks!
  pod 'LTRefreshing', '~> 1.0.0'
end

Next

__weak typeof(self) weakSelf = self;

//上下拉刷新样式
[LTREFRESH refreshView:self.tableView refreshType:RefreshTypeHeaderAndNormalFooter headerRefreshBlock:^{
    weakSelf.page = 0;
    [weakSelf testHeaderRefresh];
} footerRefreshBlock:^{
    weakSelf.page += 5;
    [weakSelf testFooterRefresh];
}];

/* 只有下拉刷新
[LTREFRESH refreshView:self.tableView refreshType:RefreshTypeHeader headerRefreshBlock:^{
    weakSelf.page = 0;
    [weakSelf testHeaderRefresh];
} footerRefreshBlock:NULL];
 */

/*只有上拉刷新
[LTREFRESH refreshView:self.tableView refreshType:RefreshTypeNormalFooter headerRefreshBlock:NULL footerRefreshBlock:^{
    weakSelf.page += 5;
    [weakSelf testFooterRefresh];
}];
*/

//第一种写法 进入就刷新
HEADER_BEGIN_REFRESH

//第二种写法 进入就刷新
//    [LTREFRESH headerEndRefreshing];


//第一种写法 下拉结束刷新
    HEADER_END_REFRESHING
    
//第二种写法 下拉结束刷新
// [LTREFRESH headerEndRefreshing];
   
//第一种写法 上拉结束刷新
FOOTER_END_REFRESHING
    
//第二种写法 上拉结束刷新
//        [LTREFRESH footerEndRefreshing];
    
//没有更多数据 上拉结束刷新 没有更多数据
//        FOOTER_END_REFRESHINGWITHNOMOREDATA
//        [LTREFRESH footerEndRefreshingWithNoMoreData];