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:
A1
as the visible view, and also relinquish it from memory. A2
. A2
's navigation controller which brings the user back to A
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.
I think you can use same presentModalView and dismissis methods just specify withAnimation: NO. This way path in navigation controller will be correct.
And I don't recall seeing anything like this in standard apps... which may be a sign for you to re-think why are you trying to do this.
取决于控制器之间的关系,但是基本上您必须从UINavigationController
的堆栈中弹出A1并将A2推入其中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.