File tree 5 files changed +9
-8
lines changed
5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ source 'https://github.com/CocoaPods/Specs.git'
20
20
platform :ios, '9.0'
21
21
22
22
target 'TargetName' do
23
- pod 'ZFWKWebView', '~> 1.1.9 '
23
+ pod 'ZFWKWebView', '~> 1.2.0 '
24
24
end
25
25
```
26
26
Then, run the following command:
Original file line number Diff line number Diff line change 9
9
10
10
Pod ::Spec . new do |s |
11
11
s . name = "ZFWKWebView"
12
- s . version = "1.1.9 "
12
+ s . version = "1.2.0 "
13
13
s . summary = "No short description of ZFWKWebView."
14
14
s . homepage = "https://github.com/FranLucky/ZFWKWebView"
15
15
s . license = { :type => "MIT" , :file => "LICENSE" }
Original file line number Diff line number Diff line change @@ -255,6 +255,10 @@ - (instancetype)initWithDefaultConfig {
255
255
- (instancetype )initWithConf : (ZFWKWebVCConf *)conf {
256
256
self = [super init ];
257
257
if (self) {
258
+
259
+ self.hidesBottomBarWhenPushed = YES ;
260
+ self.edgesForExtendedLayout = UIRectEdgeNone;
261
+
258
262
_config = conf;
259
263
lastPostion = 0 ;
260
264
scrollJudgeDistance = 100 ;
@@ -500,10 +504,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
500
504
} else if ([keyPath isEqualToString: @" openUrl" ]) {
501
505
if (!value) return ;
502
506
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];
507
508
NSURLRequest *req = [[NSURLRequest alloc ] initWithURL: url cachePolicy: NSURLRequestReloadIgnoringCacheData timeoutInterval: self .config.timeoutDuration];
508
509
[self .webView loadRequest: req];
509
510
} else if ([keyPath isEqualToString: @" showCloseButton" ]) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ @implementation ViewController
17
17
18
18
- (void )viewDidLoad {
19
19
[super viewDidLoad ];
20
- // http://10.10.40.32:9999/
20
+
21
21
[self .view setBackgroundColor: [UIColor whiteColor ]];
22
22
[[[NSURLSession sharedSession ] dataTaskWithURL: [NSURL URLWithString: @" https://www.baidu.com" ]] resume ];
23
23
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ - (instancetype)init
14
14
self = [super init ];
15
15
if (self) {
16
16
{
17
- self.openUrl = @" https://www. baidu.com/ " ;
17
+ self.openUrl = @" https://baidu.com" ;
18
18
self.timeoutDuration = 2 ;
19
19
self.titleText = @" aaa" ;
20
20
self.useWebTitleAutomatic = NO ;
You can’t perform that action at this time.
0 commit comments