Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
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
GMBase
Commits
cc5f889c
Commit
cc5f889c
authored
Feb 07, 2017
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配Phobos
parent
8c4ac2b6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
25 deletions
+14
-25
Podfile.lock
Example/Podfile.lock
+2
-2
GMBase.podspec.json
Example/Pods/Local Podspecs/GMBase.podspec.json
+2
-2
Manifest.lock
Example/Pods/Manifest.lock
+2
-2
project.pbxproj
Example/Pods/Pods.xcodeproj/project.pbxproj
+0
-0
Info.plist
Example/Pods/Target Support Files/GMBase/Info.plist
+1
-1
Pods-GMBase_Example-acknowledgements.plist
...GMBase_Example/Pods-GMBase_Example-acknowledgements.plist
+5
-5
WMBaseViewController.m
GMBase/Classes/WMBaseViewController.m
+2
-13
No files found.
Example/Podfile.lock
View file @
cc5f889c
...
...
@@ -15,7 +15,7 @@ PODS:
- AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession
- Base64nl (1.2)
- GMBase (0.0.1
5
):
- GMBase (0.0.1
6
):
- GMNetService
- GMPhobos
- GMRefresh
...
...
@@ -60,7 +60,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
Base64nl: a497bdcd1c01ea793d36b399016195a8713c0e95
GMBase:
17cb77aabaea020c2b59346b3c87c592a166e200
GMBase:
7a22545432ae10d4fe954fd4f2fc9a251bb8da5e
GMCache: 73855b613b9d7e34f4f37ad425e8b8153b760c04
GMFoundation: 08b2e6e12c211ed37aa5dce3588f645a133b9165
GMKit: 04a30d67c6b5468f07c8d9f60d0f8b12dd90b162
...
...
Example/Pods/Local Podspecs/GMBase.podspec.json
View file @
cc5f889c
{
"name"
:
"GMBase"
,
"version"
:
"0.0.1
5
"
,
"version"
:
"0.0.1
6
"
,
"summary"
:
"更美iOS APP 的 Objective-C 基础Pod库"
,
"homepage"
:
"http://git.gengmei.cc/gengmeiios/GMBase"
,
"license"
:
"仅限北京更美互动信息科技有限公司内部使用"
,
...
...
@@ -9,7 +9,7 @@
},
"source"
:
{
"git"
:
"git@git.gengmei.cc:gengmeiios/GMBase.git"
,
"tag"
:
"0.0.1
5
"
"tag"
:
"0.0.1
6
"
},
"platforms"
:
{
"ios"
:
"8.0"
...
...
Example/Pods/Manifest.lock
View file @
cc5f889c
...
...
@@ -15,7 +15,7 @@ PODS:
- AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession
- Base64nl (1.2)
- GMBase (0.0.1
5
):
- GMBase (0.0.1
6
):
- GMNetService
- GMPhobos
- GMRefresh
...
...
@@ -60,7 +60,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
Base64nl: a497bdcd1c01ea793d36b399016195a8713c0e95
GMBase:
17cb77aabaea020c2b59346b3c87c592a166e200
GMBase:
7a22545432ae10d4fe954fd4f2fc9a251bb8da5e
GMCache: 73855b613b9d7e34f4f37ad425e8b8153b760c04
GMFoundation: 08b2e6e12c211ed37aa5dce3588f645a133b9165
GMKit: 04a30d67c6b5468f07c8d9f60d0f8b12dd90b162
...
...
Example/Pods/Pods.xcodeproj/project.pbxproj
View file @
cc5f889c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Example/Pods/Target Support Files/GMBase/Info.plist
View file @
cc5f889c
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.0.1
5
<
/string
>
<
string
>
0.0.1
6
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
Example/Pods/Target Support Files/Pods-GMBase_Example/Pods-GMBase_Example-acknowledgements.plist
View file @
cc5f889c
...
...
@@ -14,7 +14,7 @@
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
FooterText
<
/k
e
y
>
<
string
>
Copyright
(
c
)
2011
&#
8211
;
2016
Alamofire
Software
Foundation
(
http://alamofire.org/
)
<
string
>
Copyright
(
c
)
2011
–
2016
Alamofire
Software
Foundation
(
http://alamofire.org/
)
Permission
is
hereby
granted
,
free
of
charge
,
to
any
person
obtaining
a
copy
of
this
software
and
associated
documentation
files
(
the
"Software"
)
,
to
deal
...
...
@@ -96,7 +96,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE
SOFTWARE.
<
/string
>
<
k
e
y
>
License
<
/k
e
y
>
<
string
>
&#
20165
;&#
38480
;&#
21271
;&#
20140
;&#
26356
;&#
32654
;&#
20114
;&#
21160
;&#
20449
;&#
24687
;&#
31185
;&#
25216
;&#
26377
;&#
38480
;&#
20844
;&#
21496
;&#
20869
;&#
37096
;&#
20351
;&#
29992
;
<
/string
>
<
string
>
仅限北京更美互动信息科技有限公司内部使用
<
/string
>
<
k
e
y
>
Title
<
/k
e
y
>
<
string
>
GMBase
<
/string
>
<
k
e
y
>
Type
<
/k
e
y
>
...
...
@@ -162,12 +162,12 @@ THE SOFTWARE.
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
FooterText
<
/k
e
y
>
<
string
>
Copyright
(
c
)
2016
&#
21271
;&#
20140
;&#
26356
;&#
32654
;&#
20114
;&#
21160
;&#
20449
;&#
24687
;&#
31185
;&#
25216
;&#
26377
;&#
38480
;&#
20844
;&#
21496
;
<
string
>
Copyright
(
c
)
2016
北京更美互动信息科技有限公司
&#
20165
;&#
38480
;&#
21271
;&#
20140
;&#
26356
;&#
32654
;&#
20114
;&#
21160
;&#
20449
;&#
24687
;&#
31185
;&#
25216
;&#
26377
;&#
38480
;&#
20844
;&#
21496
;&#
20869
;&#
37096
;&#
20351
;&#
29992
;
仅限北京更美互动信息科技有限公司内部使用
<
/string
>
<
k
e
y
>
License
<
/k
e
y
>
<
string
>
&#
20165
;&#
38480
;&#
21271
;&#
20140
;&#
26356
;&#
32654
;&#
20114
;&#
21160
;&#
20449
;&#
24687
;&#
31185
;&#
25216
;&#
26377
;&#
38480
;&#
20844
;&#
21496
;&#
20869
;&#
37096
;&#
20351
;&#
29992
;
<
/string
>
<
string
>
仅限北京更美互动信息科技有限公司内部使用
<
/string
>
<
k
e
y
>
Title
<
/k
e
y
>
<
string
>
GMKit
<
/string
>
<
k
e
y
>
Type
<
/k
e
y
>
...
...
GMBase/Classes/WMBaseViewController.m
View file @
cc5f889c
...
...
@@ -8,7 +8,6 @@
#import "WMBaseViewController.h"
#import "GMBaseUtil.h"
#import <GMPhobos/UIViewController+Phobos.h>
@interface
WMBaseViewController
()
{
}
...
...
@@ -92,9 +91,7 @@
// 导航栏隐藏在 viewWillAppear 里控制的原因是在viewDidLoad时,有可能 navigationController 与 self 并没有关系
self
.
navigationController
.
navigationBarHidden
=
YES
;
[
self
setUpInTime
];
[
self
setReferer
:
nil
];
[[
Phobos
sharedClient
]
onPageStart
:
self
.
pageName
businessId
:
self
.
businessId
referer
:
self
.
referer
inTime
:
self
.
inTime
];
[[
Phobos
sharedClient
]
onPVStart
:
self
];
}
-
(
void
)
viewWillDisappear
:
(
BOOL
)
animated
...
...
@@ -106,21 +103,13 @@
[
self
setHidesBottomBarWhenPushed
:
NO
];
}
if
(
self
.
pageName
.
length
>
0
)
{
[[
Phobos
sharedClient
]
onPageEnd
:
self
.
pageName
businessId
:
self
.
businessId
referer
:
self
.
referer
inTime
:
self
.
inTime
referrerId
:
self
.
referrerId
];
}
[[
Phobos
sharedClient
]
onPVEnd
:
self
];
}
-
(
UIStatusBarStyle
)
preferredStatusBarStyle
{
return
UIStatusBarStyleDefault
;
}
-
(
void
)
setUpInTime
{
NSDate
*
date
=
[
NSDate
date
];
NSTimeInterval
interval
=
[
date
timeIntervalSince1970
];
NSString
*
timeIntervalStr
=
[
NSString
stringWithFormat
:
@"%ld"
,(
long
)
interval
];
self
.
inTime
=
timeIntervalStr
;
}
#pragma mark - 导航
-
(
void
)
customNavigationBar
{
_navigationBar
=
[[
OCNavigatioinBar
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
[
UIScreen
mainScreen
].
bounds
.
size
.
width
,
64
)];
...
...
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