Commit 61cd6341 authored by 曹云霄's avatar 曹云霄

修复搜索界面滑动bug

parent 521d6dec
...@@ -73,12 +73,18 @@ ...@@ -73,12 +73,18 @@
{ {
[super viewDidAppear:animated]; [super viewDidAppear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
} }
- (void)viewWillDisappear:(BOOL)animated - (void)viewWillDisappear:(BOOL)animated
{ {
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
} }
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
if (self.isSliding) { if (self.isSliding) {
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
} }
} }
...@@ -53,6 +56,9 @@ ...@@ -53,6 +56,9 @@
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
// 开启 // 开启
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
} }
......
...@@ -112,9 +112,11 @@ ...@@ -112,9 +112,11 @@
} }
} WithErrorCodeBlock:^(id errorCodeValue) { } WithErrorCodeBlock:^(id errorCodeValue) {
[weakSelf RemoveMBProgressHUDLoding];
[weakSelf endRefreshingForTableView:weakSelf.paymentsTableView]; [weakSelf endRefreshingForTableView:weakSelf.paymentsTableView];
[weakSelf SHOWPrompttext:NETWORK]; [weakSelf SHOWPrompttext:NETWORK];
} WithFailureBlock:^(NSError *error) { } WithFailureBlock:^(NSError *error) {
[weakSelf RemoveMBProgressHUDLoding];
[weakSelf endRefreshingForTableView:weakSelf.paymentsTableView]; [weakSelf endRefreshingForTableView:weakSelf.paymentsTableView];
[weakSelf SHOWPrompttext:error.localizedDescription]; [weakSelf SHOWPrompttext:error.localizedDescription];
}]; }];
......
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
{ {
[super viewDidAppear:animated]; [super viewDidAppear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
} }
#pragma mark -视图即将消失 #pragma mark -视图即将消失
...@@ -64,6 +67,9 @@ ...@@ -64,6 +67,9 @@
{ {
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
} }
......
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
{ {
[super viewDidAppear:animated]; [super viewDidAppear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
} }
...@@ -78,6 +81,9 @@ ...@@ -78,6 +81,9 @@
{ {
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
} }
......
...@@ -59,6 +59,9 @@ ...@@ -59,6 +59,9 @@
{ {
[super viewDidAppear:animated]; [super viewDidAppear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
[self.shopResponseArray removeAllObjects]; [self.shopResponseArray removeAllObjects];
[self InitializeState]; [self InitializeState];
[self getShoppingCardata]; [self getShoppingCardata];
...@@ -69,6 +72,9 @@ ...@@ -69,6 +72,9 @@
{ {
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES; self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}
} }
#pragma mark -初始化状态 #pragma mark -初始化状态
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
self.withdrawalTableView.tableFooterView = [UIView new];
[self setupRefreshing]; [self setupRefreshing];
} }
......
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
self.automaticallyAdjustsScrollViewInsets = NO; self.automaticallyAdjustsScrollViewInsets = NO;
//检测登陆超时通知 //检测登陆超时通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(logintimeoutNotification:) name:LOGINTIMEOUT object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(logintimeoutNotification:) name:LOGINTIMEOUT object:nil];
} }
#pragma mark -登陆超时回调 #pragma mark -登陆超时回调
- (void)logintimeoutNotification:(NSNotification *)not - (void)logintimeoutNotification:(NSNotification *)not
{ {
......
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