Commit c687233d authored by DavidHuang's avatar DavidHuang

控制权交给H5端

1、处理导航栏可能不存在的情况
2、解决了刷新多次的问题
parent 2e3a147d
......@@ -639,11 +639,11 @@ extension YHH5WebViewVC {
if tag.contains("1") {
//隐藏
isHideNavigationBar = true
supportFullScreenSyn("1")//强制通屏
// supportFullScreenSyn("1")//强制通屏
} else {
//不隐藏
isHideNavigationBar = false
supportFullScreenSyn("1")
// supportFullScreenSyn("1")
}
gk_navigationBar.isHidden = isHideNavigationBar
}
......@@ -769,6 +769,9 @@ extension YHH5WebViewVC {
extension YHH5WebViewVC : UIScrollViewDelegate {
func scrollViewDidScroll(_ scrollView: UIScrollView) {
if isFullScreenFlag,scrollView == webview.scrollView {
printLog("srollView 滚动事件")
if scrollView.contentOffset.y > 0 {
var alpha = scrollView.contentOffset.y / (k_Height_NavigationtBarAndStatuBar)
if alpha > 1.0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment