Skip to content

Commit

Permalink
update pods
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemo committed Mar 2, 2016
1 parent d69d548 commit 3dbd699
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
Binary file modified SUIMVVMDemo/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#import "UICollectionViewCell+Extension.h"
#import "MVVMBaseViewModel.h"
#import "MJRefresh.h"
#import "SVProgressHUD.h"

@interface MVVMCollectionDataDelegate ()

Expand Down Expand Up @@ -61,16 +60,13 @@ - (void)handleCollectionViewDatasourceAndDelegate:(UICollectionView *)collection
__weak typeof(self) weakSelf = self;
__weak typeof(collection) weakCollection = collection;

[SVProgressHUD show];
// 下拉刷新
collection.mj_header= [MJRefreshNormalHeader headerWithRefreshingBlock:^{
[weakSelf.viewModel vm_getDataSuccessHandler:^{
[SVProgressHUD dismiss];
[weakCollection reloadData];
}];
// 结束刷新
[weakCollection.mj_header endRefreshing];
[SVProgressHUD dismiss];
}];
[collection.mj_header beginRefreshing];
collection.mj_header.automaticallyChangeAlpha = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#import "MVVMTableDataDelegate.h"
#import "UITableViewCell+Extension.h"
#import "MVVMBaseViewModel.h"
#import "SVProgressHUD.h"
#import "MJRefresh.h"
#import "UITableView+FDTemplateLayoutCell.h"

Expand Down Expand Up @@ -56,17 +55,14 @@ - (void)handleTableViewDatasourceAndDelegate:(UITableView *)table
__weak typeof(self) weakSelf = self;
__weak typeof(table) weakTable = table;

[SVProgressHUD show];
// 下拉刷新
table.mj_header= [MJRefreshNormalHeader headerWithRefreshingBlock:^{

[weakSelf.viewModel vm_getDataSuccessHandler:^{
[SVProgressHUD dismiss];
[weakTable reloadData];
}];
// 结束刷新
[weakTable.mj_header endRefreshing];
[SVProgressHUD dismiss];
}];

[table.mj_header beginRefreshing];
Expand Down
4 changes: 2 additions & 2 deletions SUIMVVMKit.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'SUIMVVMKit'
s.version = '0.2.0'
s.version = '0.2.2'
s.summary = 'SUIMVVMKit is a MVVM frameWork easy to develop iOS'
s.homepage = 'https://github.com/lovemo/MVVMFramework'
s.platform = :ios, '7.0'
s.license = 'MIT'
s.author = { 'lovemo' => '[email protected]' }
s.source = { :git => 'https://github.com/lovemo/MVVMFramework.git',:tag => '0.2.0' }
s.source = { :git => 'https://github.com/lovemo/MVVMFramework.git',:tag => '0.2.2' }
s.requires_arc = true
s.public_header_files = 'SUIMVVMKit/**/*.h'
s.source_files = 'SUIMVVMKit/SUIMVVMKit.h'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,13 @@ - (void)handleCollectionViewDatasourceAndDelegate:(UICollectionView *)collection
__weak typeof(self) weakSelf = self;
__weak typeof(collection) weakCollection = collection;

[SVProgressHUD show];
// 下拉刷新
collection.mj_header= [MJRefreshNormalHeader headerWithRefreshingBlock:^{
[weakSelf.viewModel vm_getDataSuccessHandler:^{
[SVProgressHUD dismiss];
[weakCollection reloadData];
}];
// 结束刷新
[weakCollection.mj_header endRefreshing];
[SVProgressHUD dismiss];
}];
[collection.mj_header beginRefreshing];
collection.mj_header.automaticallyChangeAlpha = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,14 @@ - (void)handleTableViewDatasourceAndDelegate:(UITableView *)table
__weak typeof(self) weakSelf = self;
__weak typeof(table) weakTable = table;

[SVProgressHUD show];
// 下拉刷新
table.mj_header= [MJRefreshNormalHeader headerWithRefreshingBlock:^{

[weakSelf.viewModel vm_getDataSuccessHandler:^{
[SVProgressHUD dismiss];
[weakTable reloadData];
}];
// 结束刷新
[weakTable.mj_header endRefreshing];
[SVProgressHUD dismiss];
}];

[table.mj_header beginRefreshing];
Expand Down

0 comments on commit 3dbd699

Please sign in to comment.