Tab Bar disappears in MFSideMenu - ios

I have a tab bar with 5 tabs and associated views added in storyboard. The first page seen in app is the view associated with first tab. In each of the five tab views , I have a menu button which gives a side menu which I implemented using MFSideMenu Controller. On clicking menu button , a table view appears from the left side. Table view contains a button named "MyProfile". On clicking it another view, say "Home View " appears. The problem is tab bar disappears in Home View. Is it possible to just show the tab bar without any selection in Home View. Thank You
Code:
for the action of menu button to bring the table view from left
- (IBAction)menuButton:(id)sender {
[self.menuContainerViewController toggleLeftSideMenuCompletion:nil];
}
on clicking the "MyProfile"
- (IBAction)myProfileTapped:(id)sender {
[SlideMenuUtility setCenterViewController:#"HomeNavigationVC"];
[self.menuContainerViewController setMenuState:MFSideMenuStateClosed];
}

Related

How to present another view controller under tab bar on button press inside a tab bar controller view?

I have 4 tabs and in the home tab, I have a button to goto profile view controller.
When I use segue, The view changes completely and it's presented over tab bar. So it gets hidden.
I want to present it under the tab bar so that I can quickly navigate to other tabs without a back button.
I am not sure if this is the right way or not. but you can add presenting viewcontroller's view as subview with the same animation.

Tab bar not showing on sub pages during runtime

I have a UITabBarController with 4 tabs, suppose A,B,C and D. I have a table view in page A. On clicking on any of the rows, E page opens.
The problem is that on creating show segue from view controller A to E, the tab bar appears below in E in storyboard, whereas during runtime no tab bar is visible on E. Please could anyone help me out in this.
EDIT :
I can add tab bar item to tab bar of subview as below:
This is the view hierarchy :
Note : I want to the tab bar of the main A-D tabs in all sub pages of A-D
I want to show you two images in different conditions. Maybe it's not a answer but will help you in some manner.
!) I have tab bar controller connected with navigation controller. That Tab bar has two items. "Top Rated" view has a button that connected to other view controller. Check right hand side attribute section for this bottom bar is none.
2)Same condition for second image but this time I changed the bottom bar option of this view controller(check attribute section). Now the view controller has tab bar item.
But this will not show in run time because this is not connected with tab bar controller. One more thing you can easily put tab bar item on new view controller that are not connected with navigation and tab bar controller, but when you run it will not there.
Updated:
This will help you. Try to set navigation inside of tab bar controller. Give tab bar item to navigation controller. Like:
Output is:
When button clicked:
In that manner you can tab bar in all views.
Update 2:
Here I have Navigation then Home view then the above process with tab bar controller and its working fine.
Updated Output:
When button clicked:

Navigation Controller Embedded in Tab Controller - Tab Bar not visible

I have a Tab Bar Controller with 3 views embedded in it : 2 are normal ViewControllers and one is a Navigation Controller which has a ViewController with a CollectionView as in the picture below. Now when I first enter the Tab Bar Controller and navigate between the tabs, everything is fine.
If I press any object in my collectionView, a new view gets pushed onto the navigationController. The problem occurs if I then press the back button and pop that view in order to return to the view containing the collectionView. In this situation, the tab bar on the bottom of the screen becomes invisible.

IOS:Tabbar issue when clicking tabbar button

I am doing app related to tab bar and navigation bar.
I had 4 tab bar button and when i clicked in 3rd button in tab-bar view appears fine and when I clicked back button on third view of tab bar its shows home view. i.e first tab bar item up to here is fine and when i click home button and came back to again to third tab bar item.
It shows the home view again instead of third view. Is there any code for this.
Please help me
-(void)viewWillAppear:(BOOL)animated
{
[self showViewController:self sender:nil];
}
I tried this but getting error "Pushing View Controller more than once is not supported ?"

ios bar button item on a table view controller

I am new to ios programming working on my first app. I have a tab bar controller with two tabs A and B. Both tabs are connected to table view controller with some data being shown. I want to add a bar button item on the top left "navigation" bar of the table. This would be a slide bar menu navigation item as shown in figure below
However, even though in my storyboard the menu bar button item shows up (as shown in the pic), when I run the program, the table corresponding to tab "A" that gets displayed does not show the menu item.
UPDATE: Solution (see the marked answer and comments) -Basically, you need to embed the table view controller in navigation view controller, set "Top bar" to "Navigation Bar" and then you can add a bar button item.
UPDATE 2 - Setting the top bar to "Navigation Bar" in attributes of the table view controller is optional.
Instead of inserting the bar button in the tab view controller insert it in view controller "A."

Resources