繁体   English   中英

iOS:当页面滚动时,UINavigationController 标题与视图控制器内容重叠

[英]iOS: UINavigationController title overlaps with viewcontroller content when page is scrolled

我正在使用 UINavigationController 来显示 WkWebview 页面的 URL 作为 viewcontroller(它包含 wkwebview)的 navigationItem.title。 标题显示正常,但是当我尝试在我的视图 controller(我的导航 controller 环绕)中滚动页面时,导航 controller 中的标题与我的页面内容重叠。 我怎样才能防止这种重叠?

        self.controller.view = self.webView;
        self.controller.navigationItem.title = self.webView.URL.absoluteString;            
        self.navigationController = [[UINavigationController alloc] initWithRootViewController:self.controller];
        [self.navigationController setNavigationBarHidden:NO animated:YES];
        

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM