Skip to content

Commit

Permalink
add viewManger <--> viewMnager
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemo committed Apr 26, 2016
1 parent b534a80 commit 760f1a7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
Binary file modified SUIMVVMDemo/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions SUIMVVMKit.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|

s.name = 'SUIMVVMKit'
s.version = '0.5.0'
s.version = '0.5.1'
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.5.0' }
s.source = { :git => 'https://github.com/lovemo/MVVMFramework.git',:tag => '0.5.1' }
s.requires_arc = true
s.public_header_files = 'SUIMVVMKit/**/*.h'
s.source_files = 'SUIMVVMKit/SUIMVVMKit.h'
Expand Down
10 changes: 10 additions & 0 deletions SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ typedef void (^ViewEventsBlock)( );
*/
typedef void (^ViewModelInfosBlock)( );

/**
* 将自己的信息返回给ViewManger的block
*/
typedef void (^ViewMangerInfosBlock)( );


@protocol SMKViewMangerProtocol <NSObject>

Expand Down Expand Up @@ -88,6 +93,11 @@ typedef void (^ViewModelInfosBlock)( );
*/
- (ViewModelInfosBlock)smk_viewMangerWithViewModelBlockOfInfos:(NSDictionary *)infos;

/**
* 处理ViewMangerInfosBlock
*/
- (ViewMangerInfosBlock)smk_viewMangerWithOtherViewMangerBlockOfInfos:(NSDictionary *)infos;

/**
* 将viewManger中的信息通过代理传递给ViewModel
*
Expand Down
9 changes: 9 additions & 0 deletions SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ typedef void (^progressBlock)(NSProgress * progress);
* 将自己的信息返回给ViewManger的block
*/
typedef void (^ViewMangerInfosBlock)( );
/**
* 将自己的信息返回给ViewModel的block
*/
typedef void (^ViewModelInfosBlock)( );


@protocol SMKViewModelProtocol <NSObject>
Expand Down Expand Up @@ -58,6 +62,11 @@ typedef void (^ViewMangerInfosBlock)( );
*/
- (ViewMangerInfosBlock)smk_viewModelWithViewMangerBlockOfInfos:(NSDictionary *)infos;

/**
* 处理ViewModelInfosBlock
*/
- (ViewModelInfosBlock)smk_viewModelWithOtherViewModelBlockOfInfos:(NSDictionary *)infos;

/**
* 将viewModel中的信息通过代理传递给ViewManger
*
Expand Down

0 comments on commit 760f1a7

Please sign in to comment.