Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
f2b839a9
Commit
f2b839a9
authored
Sep 28, 2017
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initReferer; initReferrerIdIfNil 优化
parent
7938974f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UIResponder+PhobosPV.m
Pod/Classes/UIResponder+PhobosPV.m
+2
-2
No files found.
Pod/Classes/UIResponder+PhobosPV.m
View file @
f2b839a9
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
*/
*/
-
(
void
)
initReferer
{
-
(
void
)
initReferer
{
// 只有不为空,且是controller的情况下才自动获取
// 只有不为空,且是controller的情况下才自动获取
if
(
self
.
referer
==
nil
&&
[
self
isKindOfClass
:[
UIViewController
class
]])
{
if
(
[
self
.
referer
isEqualToString
:
@""
]
&&
[
self
isKindOfClass
:[
UIViewController
class
]])
{
// 分present与navigation两种情况
// 分present与navigation两种情况
UIViewController
*
me
=
(
UIViewController
*
)
self
;
UIViewController
*
me
=
(
UIViewController
*
)
self
;
if
(
me
.
presentingViewController
!=
nil
)
{
if
(
me
.
presentingViewController
!=
nil
)
{
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
-
(
void
)
initReferrerIdIfNil
{
-
(
void
)
initReferrerIdIfNil
{
// 只有不为空,且是controller的情况下才自动获取
// 只有不为空,且是controller的情况下才自动获取
if
(
self
.
referrerId
==
nil
&&
[
self
isKindOfClass
:[
UIViewController
class
]])
{
if
(
[
self
.
referrerId
isEqualToString
:
@""
]
&&
[
self
isKindOfClass
:[
UIViewController
class
]])
{
// 分present与navigation两种情况
// 分present与navigation两种情况
UIViewController
*
me
=
(
UIViewController
*
)
self
;
UIViewController
*
me
=
(
UIViewController
*
)
self
;
if
(
me
.
presentingViewController
!=
nil
)
{
if
(
me
.
presentingViewController
!=
nil
)
{
...
...
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