Search code examples
objective-cuitableviewuiviewcontrolleruitabbarcontrolleruitabbar

UITabbar disappears when clicked on a button


I use UITabBar in my application. In one of my tabbars, i have a UITableView in a UIViewController whose root view controller is a Navigation Controller. When i click on a cell, i go to my custom edit mode which is a UIViewController.

In my edit mode I have a backButton that shows me UIViewController with the TableView.

My problem is when i click backButton, my TabBar disappears.

Do you have any ideas why my TabBar disappears?

Thanks.


Solution

  • In back button click, add the following code.

    [self.navigationController popViewControllerAnimated:YES];