Display Dashcode Browser in App with SIngle NavBar - ios

How can I display a Dashcode created Browser template in a UIWebView, that the user can dismiss, without having two navigation bars? 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. The lower bar is for the Dashcode created stack and pop of the content hierarchy that the user navigates.
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. If I hide the Xcode navbar, the user can't get rid of the web view when they're done. I can't hide the Dashcode navbar or the user can't navigate the content.
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. 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. Thereby giving the effect that the Done button (from Xcode IB) is part of the NavBar from Dashcode Browser template.

Related

Navigation in SwiftUI - App Setup Navigation View flow into a Tab View Navigation flow

Picking up swift again for the first time in a while and this seems way more difficult than it should be to find a clear answer on the correct way to go about this as it seems like a common scenario for an app.
I need to present the user with a few set up screens (user registration, login, other details) that will only be presented once when first setting up the app.
When finished with this setup process the app should navigate to a Tab View based Home Screen which will be the main navigation throughout the app (with each tab item having its own NavigationView navigation)
Navigating from the setup to the home view with a Navigation Link stays within that initial navigation view hierarchy and I end up with double navigation bars on the Home Screen. I've also tried presenting the setup view as a FullScreenCover, but that didn't seem to fully work correctly either.
I'm avoiding posting code as I want to find the best way this will work for multiple projects, not specifically for what I'm currently working on.

Youtube-like video control bar in the bottom

In the youtube app there's a possibility to collapse video into a small preview window with a playback and controls while you navigating in the different parts of the app. By tapping on the window you can always switch to full screen mode again.
I wonder: what't the best approach to implement similar functionality? For now I see few options but I'm not very well aware of the implications of these options.
Note: I have an iPhone tabbar based app.
Create a popover modal view controller, that is presented on top of current navigation stack in a current tab
Create a view and stick it to the bottom of the screen.
Create a view in bounds of a tabbar controller
Create a modal view controller embedded in tabbar controller.
Just from the list I suspect that using a specialized UIView (2) would be the worst possible way to do this. But I don't know about the rest. Any advice would be greatly appreciated.

Xcode Persistent Tab Bar Navigation

So I'm building an app where I need a persistent tab bar navigation at the bottom of the screen, exactly like how the Facebook, Twitter, LinkedIn and Instagram iOS apps do. Now whilst I can use a TabBarController and link the main pages of the app, I need the TabBar to be present on every page and not just the first page of each section.
I tried creating a UITabBar class and importing it into one of my ViewControllerClasses so that I don't have to add a TabBar on every single view. But when I add this UITabBar class as a subview of the ViewController I can't seem to change any of it's properties such as background colour.
Can anyone suggest what might be wrong or suggest any better methods of approaching a persistent tab bar navigation on every page of the app?

Achieve effect of navigating without changing the current view

I have a UIWebView that imports a single page web app (ex. AngularJS app). When I navigate inside the webview, I want to make the user feel as if he's navigating inside a native app. To do this, I need to be able to programmatically change the navigation bar (title and the back button) and imitate page transition inside the app. The page transition can be done by using ionic, which uses hardware acceleration along with velocity.js but I am not sure if animating the fade in and sliding effect of navigation title would be easy enough.
Is there a way to programatically animate the navigation bar, as if you're moving away to a different view?

UINavigation Controller and UIWeb View Navigation

I am writing an Xcode Application that has the following structure:
UINavigationController
UITableView
Option 1 Something else
Option 2 Something else
Option 3 UIWebView
Within my web view I have an internal web page with a drill down structure:
UIWebView
Option 1
Option a
Detail from a
Option b
Detail from b
Option c
Option d
Option 2
Option 3
etc.
The navigation up to the UIWeb view is handled by iOS; the navigation once I get the UIWeb view is handled by the web page.
The problem is that I am showing the navigation bar from iOS in the first UIWebView Web page, which want to do, but not in subsequent pages.
How can I handle the handoff of navigation?
OK, I think I figured this out.
It really isn't anything to do with Xpages, but with using UIWebViews within iOS.
The problem was that on the first webView, I wanted to show the iOS Navigation, but in any subsequent ones I didn't want to - would just prefer to use the web navigation.
There is a delegation method in iOS Web views that allows you to show or hide the navigation bar. I added this delegate and just check to see which page I am on. If on the first one, I show the iOS Navigation, else I suppress.
This works great!

Resources