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
6d5bc870
Commit
6d5bc870
authored
Jun 19, 2020
by
周亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改回到前台is_first为1的bug,应该为0
parent
31450951
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
Podfile
Example/Podfile
+1
-1
Podfile.lock
Example/Podfile.lock
+4
-4
WMBaseViewController.m
GMBase/Classes/WMBaseViewController.m
+6
-2
No files found.
Example/Podfile
View file @
6d5bc870
...
...
@@ -14,7 +14,7 @@ target 'GMBase_Example' do
# pod 'GMBaseSwift', :path => '../../GMBaseSwift'
pod
'GMBaseSwift'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git'
,
:commit
=>
'116868d'
pod
'GMPhobos'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git'
,
:commit
=>
'
3254171eaae5e7c12252aee28f550d163b7be006
'
pod
'GMPhobos'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git'
,
:commit
=>
'
2fc748a4f501d350f5a75dff23fc33952e7a2f95
'
target
'GMBase_Tests'
do
inherit!
:search_paths
...
...
Example/Podfile.lock
View file @
6d5bc870
...
...
@@ -131,7 +131,7 @@ PODS:
DEPENDENCIES:
- GMBase (from `../`)
- "GMBaseSwift (from `git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git`, commit `116868d`)"
- "GMPhobos (from `git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git`, commit `
3254171eaae5e7c12252aee28f550d163b7be006
`)"
- "GMPhobos (from `git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git`, commit `
2fc748a4f501d350f5a75dff23fc33952e7a2f95
`)"
- GMShareSDK (= 0.2.1)
- SnapKit (= 4.0.0)
...
...
@@ -172,7 +172,7 @@ EXTERNAL SOURCES:
:commit: 116868d
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git"
GMPhobos:
:commit:
3254171eaae5e7c12252aee28f550d163b7be006
:commit:
2fc748a4f501d350f5a75dff23fc33952e7a2f95
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git"
CHECKOUT OPTIONS:
...
...
@@ -180,7 +180,7 @@ CHECKOUT OPTIONS:
:commit: 116868d
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git"
GMPhobos:
:commit:
3254171eaae5e7c12252aee28f550d163b7be006
:commit:
2fc748a4f501d350f5a75dff23fc33952e7a2f95
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git"
SPEC CHECKSUMS:
...
...
@@ -214,6 +214,6 @@ SPEC CHECKSUMS:
WechatOpenSDK: 8b3ba4239193d1112205c139c94e21934e8f369a
Weibo_SDK: 5a4d08f7e1fedbb635435e4585c8c0439c7da089
PODFILE CHECKSUM:
801921fb5ef522c632196dbf23bacb65e3e715e7
PODFILE CHECKSUM:
6ac1e6d23702f1381ddc1b0064ddfa7267a6141e
COCOAPODS: 1.9.3
GMBase/Classes/WMBaseViewController.m
View file @
6d5bc870
...
...
@@ -47,6 +47,7 @@
// 在 initController 中初始化自定义导航栏有很大好处。至少可以保证视图被push之前就可以访问navigationBar,以配置title等属性
[
self
customNavigationBar
];
self
.
isFirst
=
1
;
}
-
(
void
)
dealloc
{
...
...
@@ -65,9 +66,12 @@
[
self
initRefererLink
];
[
self
initReferrerTabName
];
[
self
setupEmptyView
];
self
.
isFirst
=
1
;
//从后台进到前台需要将is_first置为0
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
baseViewControllerWillEnterForeground
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
}
-
(
void
)
baseViewControllerWillEnterForeground
{
self
.
isFirst
=
0
;
}
-
(
void
)
setupEmptyView
{
_emptyView
=
[[
GMEmptyView
alloc
]
initWithFrame
:
CGRectZero
];
_emptyView
.
hidden
=
YES
;
...
...
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