Commit d8f12b21 authored by 周亮's avatar 周亮

修改is_first逻辑

parent c5a5fef0
...@@ -66,11 +66,6 @@ ...@@ -66,11 +66,6 @@
[self initRefererLink]; [self initRefererLink];
[self initReferrerTabName]; [self initReferrerTabName];
[self setupEmptyView]; [self setupEmptyView];
//从后台进到前台需要将is_first置为0
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(baseViewControllerWillEnterForeground) name:UIApplicationWillEnterForegroundNotification object:nil];
}
- (void)baseViewControllerWillEnterForeground {
self.isFirst = 0;
} }
- (void)setupEmptyView { - (void)setupEmptyView {
_emptyView = [[GMEmptyView alloc] initWithFrame:CGRectZero]; _emptyView = [[GMEmptyView alloc] initWithFrame:CGRectZero];
...@@ -119,7 +114,6 @@ ...@@ -119,7 +114,6 @@
- (void)viewWillDisappear:(BOOL)animated - (void)viewWillDisappear:(BOOL)animated
{ {
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
self.isFirst = 0;
[[Phobos sharedClient] onPVEnd:self]; [[Phobos sharedClient] onPVEnd:self];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment