diff --git a/SUIMVVMDemo/.DS_Store b/SUIMVVMDemo/.DS_Store index 28646d3..4c20005 100644 Binary files a/SUIMVVMDemo/.DS_Store and b/SUIMVVMDemo/.DS_Store differ diff --git a/SUIMVVMKit.podspec b/SUIMVVMKit.podspec index cfbc532..873d2d1 100644 --- a/SUIMVVMKit.podspec +++ b/SUIMVVMKit.podspec @@ -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' => 'lovemomoyulin@qq.com' } -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' diff --git a/SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h b/SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h index e911aae..90b25eb 100644 --- a/SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h +++ b/SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h @@ -17,6 +17,11 @@ typedef void (^ViewEventsBlock)( ); */ typedef void (^ViewModelInfosBlock)( ); +/** + * 将自己的信息返回给ViewManger的block + */ +typedef void (^ViewMangerInfosBlock)( ); + @protocol SMKViewMangerProtocol @@ -88,6 +93,11 @@ typedef void (^ViewModelInfosBlock)( ); */ - (ViewModelInfosBlock)smk_viewMangerWithViewModelBlockOfInfos:(NSDictionary *)infos; +/** + * 处理ViewMangerInfosBlock + */ +- (ViewMangerInfosBlock)smk_viewMangerWithOtherViewMangerBlockOfInfos:(NSDictionary *)infos; + /** * 将viewManger中的信息通过代理传递给ViewModel * diff --git a/SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h b/SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h index 760d4ba..136bc38 100644 --- a/SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h +++ b/SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h @@ -29,6 +29,10 @@ typedef void (^progressBlock)(NSProgress * progress); * 将自己的信息返回给ViewManger的block */ typedef void (^ViewMangerInfosBlock)( ); +/** + * 将自己的信息返回给ViewModel的block + */ +typedef void (^ViewModelInfosBlock)( ); @protocol SMKViewModelProtocol @@ -58,6 +62,11 @@ typedef void (^ViewMangerInfosBlock)( ); */ - (ViewMangerInfosBlock)smk_viewModelWithViewMangerBlockOfInfos:(NSDictionary *)infos; +/** + * 处理ViewModelInfosBlock + */ +- (ViewModelInfosBlock)smk_viewModelWithOtherViewModelBlockOfInfos:(NSDictionary *)infos; + /** * 将viewModel中的信息通过代理传递给ViewManger *