|
@@ -93,6 +93,9 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachChanged:) name:AFNetworkingReachabilityDidChangeNotification object:nil];
|
|
|
|
|
|
|
|
|
+ //前往登录通知-tabbar
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(isLoginTabBar:) name:@"isLoginTabBar" object:nil];
|
|
|
+
|
|
|
UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(paningGestureReceive:)];
|
|
|
[recognizer delaysTouchesBegan];
|
|
|
[self.view addGestureRecognizer:recognizer];
|
|
@@ -282,6 +285,20 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
|
|
|
|
|
|
+-(void)isLoginTabBar:(NSNotification *)notification
|
|
|
+{
|
|
|
+ NSDictionary *dict = notification.userInfo;
|
|
|
+ //
|
|
|
+ NSLog(@"我从第几个页面过来:%@",dict[@"item_index"]);
|
|
|
+
|
|
|
+
|
|
|
+ //
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", kHost, @"jyapp/free/login"];
|
|
|
+ url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
|
+ [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
- (void)hideTabBar {
|
|
|
if (self.tabBarController.tabBar.hidden == YES) {
|
|
|
return;
|
|
@@ -362,6 +379,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
[self doSomeWithLoadUrl:url];
|
|
|
}
|
|
|
|
|
|
+//15737190152
|
|
|
-(void)doSomeWithLoadUrl:(NSString *)url{
|
|
|
if (!url) {
|
|
|
return;
|