Part of my app is a notes section, a bit like the iPhone’s built-in notes app. The user taps their note in a UITableView (controlled by NSFetchedResultsController), and the UINavigationController shows the note.
At the moment, if the user wants to view another note, they have to go back to the UITableView and choose it there. I would like to have up and down arrows to go straight to the next/previous note.
What is the best way of going about this? I’m guessing I need to go back and get the next item from the NSFetchedResultsController somehow without showing the UITableView? And how do I integrate this with the UINavigationController?
It turned out the answer was really simple – I didn’t have to change views at all. I just got the new information from the root view controller using a delegate and changed all the properties on the current view controller. One of those properties is an NSIndexPath, so it knows where in the root view’s table it appears.