Xcode: Navigation Bar not selectable after table view cell page navigation - ios

So I have a UIViewController, which has a Navigation Controller embedded in it, and it also has a table view with several populated cells. If I tap on a cell it brings me to another page, and then when I go back to the table view page, the navigation bar no longer works. I'm unsure as to what is causing this to happen.
This is how I navigate to the new page after a table view cell has selected.
let itemPage = ItemPageViewController()
navigationController?.pushViewController(itemPage, animated: true)

Related

How do remove tab bar when navigate away from tabbar view controller?

I have a tabbar view controller with one tab being a table view. From the table view cell, I want to navigate to another view. However, the whole tabbar shows up on the second view. How Can I remove the tabbar from the second view? Thanks!
Try to set targetController.hidesBottomBarWhenPushed = true

Navigating from TableViewController to Tab View Controller

I'm making a App where the user has to pick an item, that is getting used in the main pages of the app.
I would like to navigate from the item, showed in a table view, to the main page.
The first page is a Table View and I have to navigate to a Tab Bar view.
In the Storyboard there is no option to drag from the cell to the Tab Bar View.
UI Storyboard view
Thanks in advance!

Hide UITabbar and show Toolbar on show segue

on my xcode project i have a Table View Controller inside of a Navigation Controller inside of a Tab Bar Controller
(Tab Bar -> Navigation Controller -> Table View Controller)
When a Table View Cell selected show segue launches with a new Table View Controller.
What I want to achieve is to hide Tab Bar Controller and show Toolbar Controller inside the new view (Just like the behaviour in Whatsapp's Chats screen).
I am able to hide Tab Bar with hidesBottomBarWhenPushed=true in prepareForSegue but failed to show Toolbar. How can i achieve this behaviour?
I have fixed the issue with setToolbarHidden method in viewDidLoad():
self.navigationController?.setToolbarHidden(false, animated: true)

Keeping a loaded View part of the tabController when the tableView cell is clicked?

I have a tabbed application with a TableView in the FirstView. I want to be able click on a cell in the TableView and load a new view.
Right now, when the cell is clicked I go to the view I want but it isn't part of the tab bar controller (as in I I don't see the two tabs on the bottom) and I also can't get back to the FirstView where the TableView is located.
I have seen tutorials on this but they are all starting from scratch. I already have a lot of content on my FirstView so I don't want to start over.
I think I have to put in a Navigation Controller but I don't know how to do that without starting over and I also don't know where I would put it.
Here is the StoryBoard for my app:
http://i.imgur.com/2YJMMD5.png
I am not sure if I understood what you are trying to do but try to control click from your cell in the Home Table View Controller to your Friend View Controller, this will create a segue from the cell to the view controller so the view controller will be called once the cell is clicked.
Please let me know if this is what you are going for!
All you need to do is select your table view controller, go to the Editor menu, and choose "Embed in Navigation Controller". This will insert a navigation controller between the tab bar controller and your table view controller. Now when you select a cell, you should use a "show" segue to go (via a push) to your new view controller.

No Animation when going back from detail view to table view, using navigation controller

I am building an app based on storyboard, navigation controller and tableview controllers.
When a user taps on a table cell a detail view is pushed in animated. So far so good.
My problem is that, when the user taps the back button on the Navigation bar, the table view appears with NO Animation.

Resources