Skip to content

Commit 9c1682b

Browse files
committed
1.2.0
1. fix with white space 2. remove url encoding
1 parent 72a60ba commit 9c1682b

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ source 'https://github.com/CocoaPods/Specs.git'
2020
platform :ios, '9.0'
2121
2222
target 'TargetName' do
23-
pod 'ZFWKWebView', '~> 1.1.9'
23+
pod 'ZFWKWebView', '~> 1.2.0'
2424
end
2525
```
2626
Then, run the following command:

ZFWKWebView.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Pod::Spec.new do |s|
1111
s.name = "ZFWKWebView"
12-
s.version = "1.1.9"
12+
s.version = "1.2.0"
1313
s.summary = "No short description of ZFWKWebView."
1414
s.homepage = "https://github.com/FranLucky/ZFWKWebView"
1515
s.license = { :type => "MIT", :file => "LICENSE"}

ZFWKWebView/ZFWKWebVC.m

+5-4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ - (instancetype)initWithDefaultConfig {
255255
- (instancetype)initWithConf:(ZFWKWebVCConf *)conf {
256256
self = [super init];
257257
if (self) {
258+
259+
self.hidesBottomBarWhenPushed = YES;
260+
self.edgesForExtendedLayout = UIRectEdgeNone;
261+
258262
_config = conf;
259263
lastPostion = 0;
260264
scrollJudgeDistance = 100;
@@ -500,10 +504,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
500504
} else if ([keyPath isEqualToString:@"openUrl"]) {
501505
if (!value) return;
502506
if ([self.webView isLoading]) [self.webView stopLoading];
503-
NSMutableCharacterSet *set = [NSCharacterSet URLQueryAllowedCharacterSet].mutableCopy;
504-
[set addCharactersInString:@"#"];
505-
NSString *urlStr = [(NSString *)value stringByAddingPercentEncodingWithAllowedCharacters:set];
506-
NSURL *url = [NSURL URLWithString:urlStr];
507+
NSURL *url = [NSURL URLWithString:value];
507508
NSURLRequest *req = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:self.config.timeoutDuration];
508509
[self.webView loadRequest:req];
509510
} else if ([keyPath isEqualToString:@"showCloseButton"]) {

sample/ZFWKWebView/ViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ @implementation ViewController
1717

1818
- (void)viewDidLoad {
1919
[super viewDidLoad];
20-
// http://10.10.40.32:9999/
20+
2121
[self.view setBackgroundColor:[UIColor whiteColor]];
2222
[[[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@"https://www.baidu.com"]] resume];
2323

sample/ZFWKWebView/ZFWKUserDefaultConf.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ - (instancetype)init
1414
self = [super init];
1515
if (self) {
1616
{
17-
self.openUrl = @"https://www.baidu.com/";
17+
self.openUrl = @"https://baidu.com";
1818
self.timeoutDuration = 2;
1919
self.titleText = @"aaa";
2020
self.useWebTitleAutomatic = NO;

0 commit comments

Comments
 (0)