views:

29

answers:

0

In my iPhone app, I have a table view. In that menu, when you select a row, it pushes detail view (a UIViewController). The detail view has up/down buttons so that you can go backwards and forwards through the menu items without having to back out into the table view.

If I advance to a different item using the up/down buttons in detail view, and then back out into the table view, I'd like it to back out to the correct menu item that I've advanced to. (Right now it backs out to the menu item that activated the detail view.)

Any ideas how I do that? Method names would be really helpful, especially ones that cause the tableview to scroll to the correct menu item and cause it to flash when I back out. Thanks for any help!

(p.s. the Mail program on iPhone does this: when you select a piece of mail, then click the down button several times, when you back out to the Inbox menu, it backs you to the menu item that you moved to.)