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
41398328
Commit
41398328
authored
Nov 22, 2016
by
wangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给PV事件添加新的参数referrer_id
parent
ee46bd67
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-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
+7
-0
No files found.
Example/GMPhobos/Images.xcassets/AppIcon.appiconset/Contents.json
View file @
41398328
{
"images"
:
[
{
"idiom"
:
"iphone"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
"idiom"
:
"iphone"
,
"size"
:
"20x20"
,
"scale"
:
"3x"
},
{
"idiom"
:
"iphone"
,
"size"
:
"29x29"
,
...
...
@@ -30,6 +40,16 @@
"size"
:
"60x60"
,
"scale"
:
"3x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
...
...
Pod/Classes/UIViewController+Phobos.h
View file @
41398328
...
...
@@ -9,6 +9,8 @@
#import <UIKit/UIKit.h>
@interface
UIViewController
(
Phobos
)
/**
* @author 翟国钧, 16-02-24 17:02:22
*
...
...
@@ -41,4 +43,9 @@
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
inTime
;
/**
<#Description#>
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
referrerId
;
@end
Pod/Classes/UIViewController+Phobos.m
View file @
41398328
...
...
@@ -63,4 +63,11 @@
return
inTime
;
}
-
(
void
)
setReferrerId
:
(
NSString
*
)
referrerId
{
objc_setAssociatedObject
(
self
,
@selector
(
referrerId
),
referrerId
,
OBJC_ASSOCIATION_COPY
);
}
-
(
NSString
*
)
referrerId
{
return
objc_getAssociatedObject
(
self
,
@selector
(
referrerId
));
}
@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