Tab bar's navbar stuck under custom navbar? - ios

I am implementing a custom nav bar for much of my application, but transition to a tab bar based navigation paradigm for other portions of the app.
When I switch to the tab bar portion of the app and navigate to the "More" section of the tab bar controller, the navbar that has the "edit" button of the more section is obscured by my custom navbar.
I have tried removing my navbar from the view, bringing the tab bar's navbar to the top of the view, etc.
The goal here is to gain access to the edit button's functionality in order to rearrange icons on the tab bar.
I'd like to either invoke the edit functionality of the tab bar programmatically or bring the tab bar's navbar to the front of the view.
Thanks in advance!

Related

Right bar button is clickable outside of Navigation bar

I am adding a right bar button in navigation bar but when i click out side of navigation bar as shown in picture below it get pressed i don't know why it is behaving like this. I have added this button from storyboard.

Hide UITabBarController and make view fit

I'm trying to hide tab bar controller when click a button in view, and then show it again when clicking another button. I've checked the code in this link: How to hide tab bar programatically and then expand view to fit but unable to do it.
I need to hide the tab bar controller and expand a UITableView so that there is no empty space where the tab bar is.
Anyone has a solution for this? I'm using Xcode 8 with auto-layout enabled.

Adding a Tab Bar to NavigationController using interface builder, not intuitive at all

I have this ViewController as the root view controller. This VC is embed in a navigation controller. So, the navigation controller is the initial controller.
I have worked millions of times with an app like this.
If I want to add buttons to my nav bar I go to the navigation controller, turn on TOP BAR property to translucent navigation bar and now I can add buttons to the nav bar on my view controller.
But this app is different. I need a tab bar at the bottom too. So, I follow the same logic. I go to the navigation bar, turn on BOTTOM BAR property to Translucent Black Tab Bar, a black rectangle appears at the bottom of my view controller and BOOM, I cannot add buttons to it. Same logic, different behaviors.
If I try to add a tab bar to the black rectangle Xcode will not accept.
I want to add this tab bar to the bottom of the view controller and make it translucent, so the collectionView this controller has will be partially visible thru it.
So the question is: what is the purpose of the BOTTOM BAR property of the navigation controller if it will not accept dragging tab bar items to it? How do I add a tab bar to my navigation controller or to its root view controller using this stuff? Or in other words: how do I add a tab bar to the bottom of a view controller that has a collection view covering the whole are and make that tab bar translucent, so I can see the contents of the collection view passing thru...
The bottom bar of a UINnavigationController is a UIToolbar and if shown the navigation controller should automatically adjust the insets of the collectionView (and other scrollView) to make the content appear under them when you scroll.
I've encountered the problem of adding elements to that bar myself and the only way that I've found is to do that in code accessing the toolbar property of your navigation controller and set the items property with your UIBarButtoItems. As you want to make a segmented controller-like component I suggest an item with a custom view.
I can't answer the first question, but as for the second- drag a Tab Bar Controller onto the canvass the same way you would with a new View Controller. Make this new Tab Bar Controller the initial View Controller. CTRL-drag from the Tab Bar Controller to any of the view controllers (or navigation controllers) for which you want a tab bar button. Select "View Controller" as the segue type. The tab bar button for that segue will appear at the bottom of both the Tab Bar Controller and the View Controller itself, and you can change the text or image by clicking it and opening the Identity Inspector.

iOS 7 navigation bar style to look like navigation controller nav bar

When using the navigation controller or embedding a view controller in navigation controller, the navigation bar light grey color covers the status bar also (the carrier, time, battery, etc). When dragging a navigation bar onto the view controller, the status bar is still white. You can't change the height of the navigation bar...so how can I make everything look and feel the same? Here's the two images:
As you can see, Chat shows that white space above the nav bar, whereas Social doesn't...any workout for this?
In this case navigation bar looks like non-transparent.
Please check properties of navigation bar and/or initialization of this bar to be sure that it's transparent.

iOS: Move the, go back to "More" tabs, button into my own Navigation Bar

I have more than 5 tabs, so the "more" button appears and works fine. However, when I open up one of the tabs from the more menu, there is an extra navigation bar at the top, which shrinks the available space in my app.
I want to move or re-implement the "more" button (at the top of the
page) into my existing navigation bar for each tab. How do I do
this?
Here is an image of what i have now, and what I want is to move that "More" button into the space where it says "Here instead", so that I can hide the upper black bar. If it matters, I am using the storyboards.
You will need to hide the navigation bar, and then create your own button on your tool bar that will pop to the root navigation controller.
To hide the nav bar:
[myTabBarController.moreNavigationController setNavigationBarHidden:YES animated:NO];
It looks like in order to recreate the left arrow from the navigation bar in your tool bar, you will actually have to use an image and set that as the view of your toolbar item. There is an image you can use here.

Resources