Commit 5b08c241 authored by jz's avatar jz

add

parent 0d540e51
...@@ -5,7 +5,7 @@ PODS: ...@@ -5,7 +5,7 @@ PODS:
- GMCache - GMCache
- MagicalRecord - MagicalRecord
- MJExtension - MJExtension
- GMRouter (0.2.1): - GMRouter (0.2.4):
- GMPhobos - GMPhobos
- MJExtension - MJExtension
- MagicalRecord (2.3.2): - MagicalRecord (2.3.2):
...@@ -33,7 +33,7 @@ EXTERNAL SOURCES: ...@@ -33,7 +33,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
GMCache: b78d8e46db864405e91d226ce640cc80d966c611 GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMPhobos: 981b9c9509945eaa28b4ad6a5376eb78f3fd54b5 GMPhobos: 981b9c9509945eaa28b4ad6a5376eb78f3fd54b5
GMRouter: e11d4416f0070fe3a93180acded1403d0200ad61 GMRouter: 1445202be8e6c80d04a9f8c1e38f9ebbec728abf
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755 MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545 MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
......
...@@ -70,13 +70,15 @@ static NSMutableDictionary *routeMap = nil; ...@@ -70,13 +70,15 @@ static NSMutableDictionary *routeMap = nil;
if ([vc isKindOfClass:[UIViewController class]]) { if ([vc isKindOfClass:[UIViewController class]]) {
UIViewController *VC = (UIViewController *)vc; UIViewController *VC = (UIViewController *)vc;
[self vcAutoIsPushWith:vc params:params]; [self vcAutoIsPushWith:vc params:params];
VC.routerBlock = routerBlock;
} }
// 赋值回调过程 // 赋值回调过程
if ([vc isKindOfClass:[UIResponder class]]) { if ([vc isKindOfClass:[UIResponder class]]) {
UIResponder *VC = (UIResponder *)vc; UIResponder *VC = (UIResponder *)vc;
VC.routerBlock = routerBlock; __weak typeof(self) weakSelf = self;
VC.routerBlock = ^(NSDictionary * _Nonnull params) {
routerBlock(params);
};
} }
return vc; return vc;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment