|
@@ -131,7 +131,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
[self.view addGestureRecognizer:recognizer];
|
|
|
//手势
|
|
|
|
|
|
- [self clearWeb];
|
|
|
+// [self clearWeb];
|
|
|
|
|
|
|
|
|
|
|
@@ -197,6 +197,8 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
#pragma mark – Gesture Recognizer –
|
|
|
-(void)paningGestureReceive:(UIPanGestureRecognizer *)recoginzer
|
|
|
{
|
|
|
+ NSString *current_url = [self.webView stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
+ NSLog(@"当前页面:%@",current_url);
|
|
|
CGRect rect = self.view.bounds;
|
|
|
CGFloat width = CGRectGetWidth(rect);
|
|
|
if (![self.webView canGoBack]) {
|
|
@@ -206,12 +208,6 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- NSString *current_url = [self.webView stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
- NSLog(@"当前页面:%@",current_url);
|
|
|
-
|
|
|
-
|
|
|
if([current_url containsString:@"jyapp/free/login"]) {
|
|
|
return;
|
|
|
}
|
|
@@ -297,6 +293,9 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
|
|
|
|
+
|
|
|
+ //[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:20]];
|
|
|
+
|
|
|
kMainQueue(^{
|
|
|
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
|
|
|
})
|
|
@@ -665,7 +664,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
|
[super didReceiveMemoryWarning];
|
|
|
- [self clearWeb];
|
|
|
+// [self clearWeb];
|
|
|
// Dispose of any resources that can be recreated.
|
|
|
}
|
|
|
|
|
@@ -674,6 +673,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
[cache removeAllCachedResponses];
|
|
|
[cache setDiskCapacity:0];
|
|
|
[cache setMemoryCapacity:0];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-(void)addNoNetViews{
|