【发布时间】:2016-04-14 02:45:47
【问题描述】:
我使用SafariViewController 来显示网页,而不是我从应用程序的NavigationController 推送的默认“完成”按钮来保留我的导航堆栈和返回箭头。但是,我需要隐藏SafariViewController 上的默认完成按钮和搜索栏。这可能吗?请参阅下面的代码和屏幕截图...
let svc = SFSafariViewController(URL: pinterestSafariURL)
navigationController?.pushViewController(svc, animated: true)
注意:链接到这个问题,但答案是一个 hack,而我正在寻找使用 SafariViewController API 的解决方案:SFSafariViewController: Hide navigation bar
【问题讨论】:
标签: ios swift sfsafariviewcontroller