Say I have UITableViewController A, and UITableViewController B.
Both A and B loads UIView C.
At the back button in C, how do I make sure it always goes back to B, rather than where it came from?
Here is a concrete example:
A=Contacts window in iphone skype.
B=Chats window, each row is a chat history with a different person
C = Chat window displays a conversation with the same person .
C can be loaded from A or B, but I want the backbutton on the Chat window ( C ) goes back to Chats (B) window only.
Cheers.
I got the answer from google group and followed his suggestion, it works:
From Sukima:
I believe (although I have no real idea) that what these applications like skype and Beejive are doing is when view A wants view C it will message your UITabBar to move to the chats tab then push in the detail view C. This is actually better because then the user will see that the view has changed via the fact that the tabbar has changed highlights. from: I further read the stackoverflow thread. I understand now what your asking.