Re: [問題] presentViewController
假設是A modally present B
進到B之後再來做push/pop view transition (是這樣嗎?)
AViewController * aVC;
BViewController * bVC = [[BViewController alloc] init];
UINavigationController* navVC = [[UINavigationController alloc]
initWithRootViewController:bVC];
[aVC presentViewController:navVC animated: completion:];
然後在BViewController裡要下一頁的時候
SomeViewController* someVC = ...
[self.navigationController pushViewController:someVC ...];
BViewController要離開的時候 再做
self.navigationController dismissViewController...];
※ 引述《redok (火焰)》之銘言:
: UIViewController *vc = ...略...;
: [vc presentViewController: animated: completion:];
: [vc dismissViewControllerWithAnimated: ...];
: 關於這種 present 新 view controller 跟 dismiss 原本的 view controller
: 是說 一個 VC 只能 present 另一個 VC 嗎?
: 那我今天頁面要進入好幾個下一頁之類的
: 我要紀錄所有的順序,然後依序 dismiss嗎?
: 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.34.186.156
推
12/09 13:29, , 1F
12/09 13:29, 1F
→
12/09 13:29, , 2F
12/09 13:29, 2F
→
12/09 13:30, , 3F
12/09 13:30, 3F
→
12/09 13:31, , 4F
12/09 13:31, 4F
→
12/09 18:17, , 5F
12/09 18:17, 5F
→
12/10 10:20, , 6F
12/10 10:20, 6F
→
12/10 10:21, , 7F
12/10 10:21, 7F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):