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
4e5f0446
Commit
4e5f0446
authored
Nov 23, 2016
by
汪洋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'addReferrerId' into 'master'
给PV事件添加新的参数referrer_id See merge request
!1
parents
ee46bd67
0f46e5bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
Contents.json
...GMPhobos/Images.xcassets/AppIcon.appiconset/Contents.json
+20
-0
UIViewController+Phobos.h
Pod/Classes/UIViewController+Phobos.h
+7
-0
UIViewController+Phobos.m
Pod/Classes/UIViewController+Phobos.m
+12
-0
No files found.
Example/GMPhobos/Images.xcassets/AppIcon.appiconset/Contents.json
View file @
4e5f0446
{
{
"images"
:
[
"images"
:
[
{
"idiom"
:
"iphone"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
"idiom"
:
"iphone"
,
"size"
:
"20x20"
,
"scale"
:
"3x"
},
{
{
"idiom"
:
"iphone"
,
"idiom"
:
"iphone"
,
"size"
:
"29x29"
,
"size"
:
"29x29"
,
...
@@ -30,6 +40,16 @@
...
@@ -30,6 +40,16 @@
"size"
:
"60x60"
,
"size"
:
"60x60"
,
"scale"
:
"3x"
"scale"
:
"3x"
},
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
{
"idiom"
:
"ipad"
,
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
"size"
:
"29x29"
,
...
...
Pod/Classes/UIViewController+Phobos.h
View file @
4e5f0446
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
@interface
UIViewController
(
Phobos
)
@interface
UIViewController
(
Phobos
)
/**
/**
* @author 翟国钧, 16-02-24 17:02:22
* @author 翟国钧, 16-02-24 17:02:22
*
*
...
@@ -41,4 +43,9 @@
...
@@ -41,4 +43,9 @@
*/
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
inTime
;
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
inTime
;
/**
<#Description#>
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
referrerId
;
@end
@end
Pod/Classes/UIViewController+Phobos.m
View file @
4e5f0446
...
@@ -58,9 +58,21 @@
...
@@ -58,9 +58,21 @@
objc_setAssociatedObject
(
self
,
@selector
(
inTime
),
inTime
,
OBJC_ASSOCIATION_COPY
);
objc_setAssociatedObject
(
self
,
@selector
(
inTime
),
inTime
,
OBJC_ASSOCIATION_COPY
);
}
}
/**
这个地方inTime的值为nil的情况不做考虑,因为Phobos不会发送
*/
-
(
NSString
*
)
inTime
{
-
(
NSString
*
)
inTime
{
NSString
*
inTime
=
objc_getAssociatedObject
(
self
,
@selector
(
inTime
));
NSString
*
inTime
=
objc_getAssociatedObject
(
self
,
@selector
(
inTime
));
return
inTime
;
return
inTime
;
}
}
-
(
void
)
setReferrerId
:
(
NSString
*
)
referrerId
{
objc_setAssociatedObject
(
self
,
@selector
(
referrerId
),
referrerId
,
OBJC_ASSOCIATION_COPY
);
}
-
(
NSString
*
)
referrerId
{
NSString
*
referrerId
=
objc_getAssociatedObject
(
self
,
@selector
(
referrerId
));
return
referrerId
==
nil
?
@""
:
referrerId
;
}
@end
@end
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