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?
Related
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.
I'm using SWRevealController with swift and it is working how it is suppose to but I would like to tweak it a little.
When you bring out the menu, by either sliding or pressing the button, the new view comes out while pushing the main view controller to the side.
What I would like to have it do is slide over the main view controller so the main view controller stays where it is with the new view controller sliding over top of it.
Does that make sense? The only example I can think of is on the Reddit News app for Android. The slide out menu doesnt effect the main view controller it just slides out on top of it. (I know its different in Android)
Is this possible to do while using the SWRevealViewController class?
what you're trying to do isn't the expected behavior of SWRevealViewController and thus it would require some low level coding for you to tweak an animation the way you're describing.
However i'd recommend using this pod instead https://github.com/jonkykong/SideMenu. It's an updated version and as you can see it provides several animations for you to choose from, the one you're looking for is Slide in. It's all really well documented.
I'm struck to implement it. I want to display a menu, which is already pushed into navigation controller. I know i have to use transition with animation method in which i have to increase the width from 0 to required value. But this is not helpful coz navigation controller takes care of presenting VC when we pop it. So how to implement it in ios?
Use a separate UIWindow for the menu, so you do not interfere with the UINavigationController.
You can have the menu behind your content window and move the content window to make the menu visible.
This is a simple question. So I have a tabbed bar application with a More... tab button. I was wondering if it's possible to make the More... button be a slide out menu button? I found tutorials on how to do it on a regular app design but things get a little more complicated when it comes to the tabbed bar application.
The thing is that you don't own the More button in the tab bar of a UITabBarController, so you can't control what happens. (You can access the navigation controller that appears when the More button is tapped, but it's still going to be just another view controller whose view is displayed above the tab bar.) If you want to write a new interface you'll have to write a whole new interface, i.e. don't use the built-in UITabBarController. That's no big deal; it isn't doing anything you can't manage to do yourself.
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.