From 760f1a727af1d8e18cf7519d128bd9ac2a132906 Mon Sep 17 00:00:00 2001 From: lovemo <928627819@qq.com> Date: Tue, 26 Apr 2016 08:56:14 +0800 Subject: [PATCH] add viewManger <--> viewMnager --- SUIMVVMDemo/.DS_Store | Bin 6148 -> 6148 bytes SUIMVVMKit.podspec | 4 ++-- SUIMVVMKit/SUIMVVMKit/SMKViewMangerProtocol.h | 10 ++++++++++ SUIMVVMKit/SUIMVVMKit/SMKViewModelProtocol.h | 9 +++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/SUIMVVMDemo/.DS_Store b/SUIMVVMDemo/.DS_Store index 28646d3c3b344a07cba835548c7e14cb7d128823..4c200050f54c97f8fed4cf9ec2d9830c2ee3a077 100644 GIT binary patch delta 35 lcmZoMXffC@pN+{Naq>boTV|JR<;f4(?4h*D=5Y440szxu3#R}8 delta 35 mcmZoMXffC@pN&av!sLZ)w#+8;_fCGuW)G!JHixsX6#xM23JpjA 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 *