Commit f28827cc77a21fe1f1a4b22af812172c752cc927
1 parent
16543452
修复视讯网页划不到底问题
Showing
2 changed files
with
2 additions
and
1 deletions
CNLiveVideoClassifyKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveVideoClassifyKit' | 10 | s.name = 'CNLiveVideoClassifyKit' |
| 11 | - s.version = '0.0.24' | 11 | + s.version = '0.0.25' |
| 12 | s.summary = '视讯头部一二级菜单组件' | 12 | s.summary = '视讯头部一二级菜单组件' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveListController.m
| @@ -90,6 +90,7 @@ | @@ -90,6 +90,7 @@ | ||
| 90 | UIViewController *vc = self.childViewControllers[0]; | 90 | UIViewController *vc = self.childViewControllers[0]; |
| 91 | if (([CNLiveListController searchProperties:[vc class] string:@"webView"]||[CNLiveListController searchProperties:[vc.superclass class] string:@"webView"])&&[vc valueForKey:@"webView"]&&[[vc valueForKey:@"webView"] isKindOfClass:[WKWebView class]]) { | 91 | if (([CNLiveListController searchProperties:[vc class] string:@"webView"]||[CNLiveListController searchProperties:[vc.superclass class] string:@"webView"])&&[vc valueForKey:@"webView"]&&[[vc valueForKey:@"webView"] isKindOfClass:[WKWebView class]]) { |
| 92 | WKWebView *webView = (WKWebView *)[vc valueForKey:@"webView"]; | 92 | WKWebView *webView = (WKWebView *)[vc valueForKey:@"webView"]; |
| 93 | + webView.frame = self.view.frame; | ||
| 93 | [webView.scrollView removeObserver:self forKeyPath:@"contentOffset"]; | 94 | [webView.scrollView removeObserver:self forKeyPath:@"contentOffset"]; |
| 94 | 95 | ||
| 95 | if ([webView.scrollView valueForKey:@"mj_header"]) { | 96 | if ([webView.scrollView valueForKey:@"mj_header"]) { |