Here's my view controller hierarchy:
| [A]
| ---- [A1]
| ---- [A2]
One accesses view controllers A1
and A2
by tapping A1
and A2
cells respectively within view controller A
.
Say I have tapped through to A1
, and within that view controller I press a button which brings me straight through to A2
, how do I:
- Remove
A1
as the visible view, and also relinquish it from memory. - Show
A2
. - Have it so that a back button appears on
A2
's navigation controller which brings the user back toA
when tapped.
As a bonus question, can anyone recall a native iPhone application which does this kind of thing? You know, just so I can see how Apple handles it.
Thanks friends.