How can I submerge and reveal tab bar in iOS like the Groupon iPhone app does?
Use a pseudo tab bar if you don't want to mess with the actual tab bar framework, subclassing etc. For example, put a segmented controller onto a view that is no bigger than the controller, size the view and controller to the size of a tab bar and just animate the origin of this custom view. Would be pretty easy and you could get it on and off the screen whenever desired with similar functionality to a tab bar.
Just one option...
Related
I'm wondering how to accomplish something like this on a UINavigationBar. It is the detail view of a card in the Wallet app.
Based on the documentation, I can't see how to add extra views to the navigation bar to accomplish this sort of design.
I can't see how to add extra views to the navigation bar to accomplish this sort of design.
You can’t.
In that screen shot, the navigation bar is empty except for the back button chevron. The card image is in the view controller’s view. That is why it moves up when you scroll up. If you look carefully as you scroll up, you can even see the card image passing behind the navigation bar.
I'm working on an app that requires a pushing a view that is full screen and shows/hides status, navigation and bottom toolbars on tapping of the central image. The app currently has a UITabBarController that has a UINavigationController for each tab. Basically when the full screen view is displayed I want it to to work like the photos app and animate off the tab bar to show my full screen view.
I'm having trouble making the view take up the full screen if I manually animate out (down) or hide the tabbar.
So, in a nutshell, my question is - what is the view hierarchy of the photos app?
It must have a base navigation controller, that contains a tab bar controller. But does each tab contain another navigation controller? But if so, how to they seem to share the navigation bar with the root navigation controller (look at how the back buttons etc are animated in)?
Is there something really obvious I'm missing?
Thanks for any help.
Have you tried using UIViewController's hidesBottomBarWhenPushed property?
I wanted to know if there's a way to add some sort of image view on top of the navigation bar. I don't want to cover it, rather, I just want to move the bar down in order to make room for a banner. The myspace app displays a bar right above their navigation bar, and so does the bank of america app. Any ideas?
See here - substitute the UITabBarController for a UINavigationController.
I have a navigation based app, in one of the screen I now want to add a tab bar. Can any one please share code snippet on how I can do that. Thanks
the common way is to add a navigation view to one within a tab view, not vice versa. as far as i know it is not possible to add a tab bar to a navigation view.
You could call a modal view that uses an underlying tab bar. Another idea is to use the tab bar for the whole app and hide the bar for the views where you don't want it to show up.
I guess I'm just really looking for some advice on how to approach my problem.
So far I have an application with a navigationcontroller that has a table view.
Every cell in the table has a text field and image and a disclosure button.
This is sort of my main menu option navigation screen.
When a user clicks a disclosure button I would like to go to a sub view of a tab view controller. The tab view will show different content depending on what cell is selected.
I'm guessing it would have something to do with the accessoryButtonTappedForRowWithIndexPath but after that I'm a little lost.
I've only ever experienced tab controllers from an example in a book where the tabbar controller was dragged onto a window in interface builder.
I'd like to try and pin down a direction to set to work to
I would highly recommend re-thinking your use of the tab bar here. The tab bar is intended to be a top-level control for navigating logically separate parts of your applications. Normal use would be tabs that contain navigation controllers that drill into detail within the navigation.
You may consider changing to use a toolbar rather than a tab bar. The toolbar is intended to change for the context of your current view. You can define the toolbar items in the view for the current navigation bar very easily.
All that said, if you are still set on using tab bar, I would keep the tab bar at the top level of your application and use setViewControllers:animated: to change the tabs when necessary. Again, I think this will end up producing a pretty confusing UI however.