简体   繁体   English

使用SIngle NavBar在App中显示Dashcode浏览器

[英]Display Dashcode Browser in App with SIngle NavBar

How can I display a Dashcode created Browser template in a UIWebView, that the user can dismiss, without having two navigation bars? 如何在UIWebView中显示Dashcode创建的浏览器模板,用户可以在没有两个导航栏的情况下关闭模板? In the photo below, you'll see that the top bar is part of an Xcode navigation controller with a back button for the purpose of letting the user leave the web view. 在下面的照片中,您将看到顶部的栏是Xcode导航控制器的一部分,带有一个返回按钮,目的是让用户离开Web视图。 The lower bar is for the Dashcode created stack and pop of the content hierarchy that the user navigates. 下部的栏用于用户创建的Dashcode创建的堆栈和弹出的内容层次结构。

As far as I know, you can't put a button in a web page, Dashcode or otherwise, that will dismiss a cocoa app view controller. 据我所知,您不能在网页上(Dashcode或其他方式)放置按钮,否则将关闭可可应用程序视图控制器。 If I hide the Xcode navbar, the user can't get rid of the web view when they're done. 如果我隐藏Xcode导航栏,则完成后用户将无法摆脱Web视图。 I can't hide the Dashcode navbar or the user can't navigate the content. 我无法隐藏Dashcode导航栏,或者用户无法导航内容。

As some background, what I'm trying to accomplish is in-app documentation that I host on the web. 在某些背景下,我要完成的工作是在网络上托管的应用程序内文档。 Similar to how the Apple iPhone Cards app does with its Help view. 与Apple iPhone Cards应用程序的“帮助”视图相似。 This would allow me to update the documentation via my web page, without needing to update the app itself. 这将使我可以通过网页更新文档,而无需更新应用程序本身。

在此处输入图片说明

The answer appears to be floating a Done button in a transparent view that floats over the top of the web view. 答案似乎是在透明视图中浮动一个“完成”按钮,该按钮浮动在Web视图的顶部。 Thereby giving the effect that the Done button (from Xcode IB) is part of the NavBar from Dashcode Browser template. 从而产生效果(“完成”按钮(来自Xcode IB)是“来自Dashcode浏览器”模板的NavBar的一部分。

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

相关问题 应用内浏览器-如果页面未加载-显示消息 - In-App Browser - if the page is not loading - Display message 在具有指定样式的 Web 浏览器中显示 Ionic App - Display Ionic App In Web Browser With Specified Styling 使用 ReactNativeKeycloak 应用程序内浏览器选项更改 Safari 的显示 - Change the display of Safari with ReactNativeKeycloak in-app browser options iPhone应用程序上的iPad风格导航栏 - iPad style navbar on iPhone app 有人知道Apple iTunes是否会接受单页应用程序,即浏览器正在加载网站 - Does anyone know if Apple iTunes will accept a single page app that is a browser loading a website iPhone dev - 如何在不使用浏览器的情况下在应用程序中显示 google map? 和其他 map 问题 - iPhone dev - How can I display a google map in an app without using the browser? And other map questions 使用javascript在iOS上通过本机应用程序或Web浏览器显示Facebook登录 - display facebook login through native app or web browser on ios using javascript 使用tabBar从应用程序中的navBar推送视图 - Push view from navBar in app with tabBar 应用导航栏按钮事件时应用崩溃 - app crashes when handling navbar button event 构建应用以在单个UITableView中显示两个列表的最佳方法是什么(在数据集之间切换) - What's the best way of building an app to display two lists in a single UITableView (switching between datasets)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM