Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMRouter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMRouter
Commits
5b08c241
Commit
5b08c241
authored
Aug 11, 2020
by
jz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
0d540e51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Podfile.lock
Example/Podfile.lock
+2
-2
GMRouter+gm.m
GMRouter/Classes/GMRouter+gm.m
+4
-2
No files found.
Example/Podfile.lock
View file @
5b08c241
...
@@ -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
...
...
GMRouter/Classes/GMRouter+gm.m
View file @
5b08c241
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment