I’m making an app in which i have a Tableview that loads when the app starts. After I click on a row I get to a view with a navigation controller and a toolbar. On the tool bar I have made two buttons for back and forward (a back arrow and a forward arrow). How can I code these buttons to select the next and previous rows of the table (back for previous row, forward for next row)?
Share
You’ll probably want to make your table view controller a delegate of the detail view controller, then define a delegate protocol to tell the delegate when those buttons were pressed. That way the table view controller can do whatever it needs to with the table view.
One way to do this: