Skip to content

Commit 6f9898b

Browse files
committed
1.1.4
1. fix bug with kvo
1 parent 77ba12c commit 6f9898b

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source 'https://github.com/CocoaPods/Specs.git'
1919
platform :ios, '9.0'
2020
2121
target 'TargetName' do
22-
pod 'ZFWKWebView', '~> 1.1.3'
22+
pod 'ZFWKWebView', '~> 1.1.4'
2323
end
2424
```
2525
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.3"
12+
s.version = "1.1.4"
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

+1-4
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ - (NSArray *)configObservePaths {
224224
}
225225

226226
- (void)dealloc {
227-
NSLog(@"%s", __func__);
227+
[self removeObserver];
228228
}
229229
- (void)removeObserver {
230230
if (self.titleLabel) {
@@ -284,9 +284,6 @@ - (void)viewWillDisappear:(BOOL)animated {
284284
- (void)viewDidDisappear:(BOOL)animated {
285285
[super viewDidDisappear:animated];
286286
[self.config.callbacks removeAllObjects];
287-
// fixed with iOS10,remove observe first
288-
[self removeObserver];
289-
self.config = nil;
290287
}
291288
- (void)viewDidLoad {
292289
[super viewDidLoad];

0 commit comments

Comments
 (0)