File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ source 'https://github.com/CocoaPods/Specs.git'
2020platform :ios, '9.0'
2121
2222target 'TargetName' do
23- pod 'ZFWKWebView', '~> 1.1.9 '
23+ pod 'ZFWKWebView', '~> 1.2.0 '
2424end
2525```
2626Then, run the following command:
Original file line number Diff line number Diff line change 99
1010Pod ::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" }
Original file line number Diff line number Diff 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" ]) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments