Skip to content

Commit

Permalink
修复QuickWebSharePlugin无法显示导航栏右侧分享按钮的BUG。
Browse files Browse the repository at this point in the history
  • Loading branch information
pcjbird committed Jan 10, 2018
1 parent 0c392bf commit bea1fb6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QuickWebKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "QuickWebKit"
s.version = "1.1.0"
s.version = "1.1.1"
s.summary = "A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。"
s.description = <<-DESC
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Expand Down
2 changes: 2 additions & 0 deletions QuickWebKit/QuickWebCore/QuickWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ - (void)viewDidLoad {
if(![QuickWebStringUtil isStringBlank:_initUrl])[self loadPage:_initUrl];

[self updateLeftBarButtonItems];

[self registerNotificationObserver];
}

-(void) registerNotificationObserver
Expand Down
3 changes: 3 additions & 0 deletions QuickWebKit/QuickWebKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// 框架名称:QuickWebKit
// 框架功能:A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
// 修改记录:
// pcjbird 2018-01-10 Version:1.1.1 Build:201801100001
// 1.修复QuickWebSharePlugin无法显示导航栏右侧分享按钮的BUG。
//
// pcjbird 2018-01-09 Version:1.1.0 Build:201801090004
// 1.修复QuickWebQRCodePlugin链接检测到却无法打开的BUG。
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ -(void)webViewControllerDidStartLoad:(QuickWebViewController *)webViewController
self.autoDetectedShareInfo = nil;
dispatch_async(dispatch_get_main_queue(), ^{

[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:webViewController.webView.secretId];
});
}

Expand Down Expand Up @@ -115,14 +115,14 @@ -(void)webViewControllerDidFinishLoad:(QuickWebViewController *)webViewControlle
{
weakSelf.autoDetectedShareInfo.image = result;
}
[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:webViewController.webView.secretId];
}];
});
}
else
{
dispatch_async(dispatch_get_main_queue(), ^{
[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:nil];
[[NSNotificationCenter defaultCenter] postNotificationName:QUICKWEBPLUGINREQUESTUPDATEUINOTIFICATION object:webViewController.webView.secretId];
});
}
}];
Expand Down
2 changes: 1 addition & 1 deletion QuickWebKit/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit bea1fb6

Please sign in to comment.