I am using the XLPagerStrip pod in my current app and I would like to extend the tableviewcontroller inside my ButtonBarPagerTabStripViewController under the nav bar and have users able to see it through the text that is on button bar navigation bar. To do this usually I would make my navigation by transparent like from the examples here, however it doesn't seem to work with the ButtonBar. I am wondering if there was an easy way to do this or if this is unsupported by the library currently? Thanks!
I ended up using the link I posted above and on creation of the bar controller setting its navigation bar. This made it transparent.
Related
My goal is to get a navigation bar like the HBO GO app on iPad. Their nav bar has a larger height and a custom background. It seems like they're using a navigation controller since when you press on a show it takes you to a new screen with a back button.
I'm wondering either
1) Can I use an instance of UINavigationBar without a NavigationController and use the navigation bar delegate to handle pushing and popping my views?
or
2)Is there another way that I can implement this?
I am currently trying to do this with a navigation controller and navigation bar but I am running into difficulties and I think its not the best way to do it. Also Apple docs specifically say not to change the frame of the navigation bar in a navcontroller.
Ideas please? Thanks in advance!
From the looks of it, the HBO Go application uses completely custom navigation controls. A basic UINavigationController-alike class is relatively straightforward to build, but you must be careful to consider that UIViewControllers are not intended to be nested on iOS <= 4 and so you will have to pass through several methods such as view{Will,Did}appear:.
I recommend starting from the ground up, as trying to heavily customize the built-in controls will only lead to further frustrations as you run into issues or limitations in their customizability.
I am working on a project which involves both kind of applications ie Navigation based and Tab based. All things are working perfectly. But what I want is, when I click on a particular tab then a button must be added to the navigation bar at the top to edit the table below it. I am able to draw the button but it is not affecting the tableview below it. When I do this in navigation based application it works perfectly. But it does not work in tab based.
So please tell me the way to add button at navigation bar in UI tab based application which appear only at particular tab.
tell me the sample code or any tutorial for it.
For each tab embed a UINavigationConrtoller, and your own view controllers in them.
This way each tab will have its own navigation bar, and thus can have their own sets of bar items, titles, etc.
You generally never want to embed a UITabBarController in a UINavigationController, always the other way around.
I have an application that seems best suited for a navigation controller. There are a few places where navigation splits off and is not completely hierarchical but I think I can remedy that just using a modal view at those points.
I want to know if this is the best way to navigate through multiple views or if there is a better way. I want the user to be able to progress through several steps but be able to go back a step or even return to the beginning at certain points.
Additionally, I want to be able to do this using custom buttons. I want to use the entire screen without any navigation bars, etc. I figured I could push and pop the stack with my own custom buttons but I want to know how to make sure the screen is totally usable by me.
As far as I know, Navigation controller is the best way to navigate among views, you can go back and forth between views using navigation controller easily, even you can present navigation controller as modal view. You can specify your own custom navigation items in navigation bar. And if you do not want navigation bar, you can hide navigation bar. pushing and popping is the best way to implement navigation among views.
#gonzobrains
I have been in that situation!
Here's what I'd do:
"Hide the navigation bar" using the setHidden property. At places where you want the navigation bar to be seen, I suggest you use a UIToolbar with custom buttons. (its almost impossible to differentiate)
to go back one step you can popViewController
to go all the way back you can use popToRootViewController (like the top right corner button in the IMDB app)
There is no reason why you should not be able to use a navigation controller without using the navigation bar.
Hope this helps!
Keep the nav controller, but you can hide the nav bar easily enough. It could be a viable solution, but make sure your implementation is solid and clear; otherwise you may be rejected. A possible alternative would be to have pages side by side, as in the weather app…but it's your decision as to which paradigm is best.
I am looking at example provided by Apple called LocateMe. I am basing my application on similar UI flow. In that example the top bar of the screen is black. Looking in the code and xib file I am not able to figure out how did they get that black bar on the top. When I set up my project exactly like them, I get blue bar. Please help.
That particular project did it by setting UIStatusBarStyle to UIStatusBarStyleOpaqueBlack in their Info.plist (which is why you couldn't find it). You can also achieve this in code this way:
[[NSApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
EDIT: I re-read your question, and it's not clear whether you're asking about the navigation controller bar or the status bar (which is the bar at the very top of the screen). The above is for the status bar. The Navigation Controller bar was set to black by going to the GetLocationSetupView.xib and selecting the Navigation Bar and selecting the "Black Opaque" style.
Can we have NavigationBar at the bottom of the screen.As i have to display a image at the top of the screen.
You can put one anywhere but the system will not manage it for you.
If you want to put a nav bar at the bottom of the screen though, the chances are great you really want to have a toolbar, or a tab bar... navigation controllers are just not good on the bottom and users will think it's really wierd.
Can't you just make the nav bar transparent and have the image go behind it?
Try using UINavigationBar's initWithFrame: to position it how you would like. You could also put it inside a view which is located below your image.
It might be worth using a toolbar instead. Users are used to seeing the navigation bar at the top. The interface guidelines might "require" this too which could lead to fun when you submit your application to Apple.