Hide UITabBarController and make view fit - ios

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.

Related

navigation bar not coming common to both screens

This is my slide menu in cyan color on the left and dark on the right is my actual window having the slide menu. i need a common navigation bar for both of them but i am not getting it.
I have attached my slide menu with a navigation bar "embed in" and which furthure is connected to swrevelviewcontroller. what should i do to get a single top navigation bar in a situation where the slide menu is visible and the screen also.
First go to storyboard select view controller then check properties from right side.
Then after you need to set UIBarButton(menu/back) manually in all view controller as per requirement. Might be your problem will solved.

iOS UITabBar position and items

I've created a view and I added a UITabBar dragged from Storyboard.
The problems I'm facing are the following. I'm trying to add more items to the UITabBar from storyboard but can't seem to find any information of how to do that. Any pointers would be appreciated
I'm not using UITabBarController.
Is it possible to decide where to place the tab bar. If I want it in the middle of the screen for testing?
Thanks
here is the steps :
Add a Tab bar to your View controller .
Drag a tab bar item and add it to you tab bar like so
And you are done; By default the tab bar will be added to the bottom of the screen

How to design a tabbar inside a view

I need to make this view:
A view on top of the tab bar with some data. (image, name, text, ...)
tab bar has a 3 page and every page has a separate view
When user scroll up, tabbar will be scrolling top of the page and a UILable stands top of tab bar. It can be show with some fading animation (not important right now)
this is after scrolling:
I search in cocopods but I didn't find solution.
---- EDITE
I want to know how to put uitabbar inside a view. Is it possible ?
If yes, How to change just sub view of tab bar when I change tab bars!
I want to know how to put uitabbar inside a view. Is it possible ? If yes, How to change just sub view of tab bar when I change tab bars!
Yes, but I wouldn't describe the thing you are showing in your screen shot as a "tab bar". It is a UISegmentedControl. So all you have to do is respond to the user tapping on a segment of the UISegmentedControl by substituting one view for another, and that's easy to do.

Navigation Bar is too small

I am working on an iPad app and when I try to put the navigation bar on the first view controller, it fits in the main storyboard but is too small (also comes in contact with the status bar) when I run the simulator (as seen in the picture below):
The width and height in the storyboard are set to regular, not sure if it is relevant to this question. How do I fix this?
It looks like you're just adding a navigation bar. Are you sure you don't want a navigation controller?
If you do just want the navigation bar the you need to add constraints to pin it to the left and right of the screen.
Click the "add constraints" button and pin to left right and top.
Click on your view and go to Editor > Embed in > Navigation Controller.

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