I have a Root UITableView (view 1) and I have a button in the navbar that pushes to another UITableView (view 2) on the nav stack.
When I select a cell from view 2, I set it up so that it pops back to the initial view. I want to be able to set the table’s title on view 1 depending on what cell I selected from view 2. Can anyone help me do this?
I’m not simply pushing from view 2 to view 1 which would make setting the title easier. Perhaps I need to create some type of delegate method?
You can make use of delegates for this. Create a
delegatein which u have a method that takes aNSStringas argument and set thedelegateas your view controller with the initial table view. Then u can get the string to display.