UITableViewController
で表示される で EditPoint を呼び出しましUINavigationController
たUIPopoverController
。
EditPoint がルートの UITableview である場合もあれば、別のものが EditPoint をUITableviewContoller
プッシュする場合もあります。
EditPoint TableViewController で、別の人がそれをビューにプッシュしたかどうか、またはそのルートかどうかを伝える方法はありますか?
EditPoint をプッシュします。
[self.navigationController pushViewController:tableView animated:TRUE];
次に、EditPointで試しました:
DLog(@"self.navigationController.presentingViewController: %@", self.navigationController.presentingViewController);
DLog(@"self.navigationController.presentedViewController: %@", self.navigationController.presentedViewController);
DLog(@"self.presentingViewController: %@", self.presentingViewController);
DLog(@"self.presentedViewController: %@", self.presentedViewController);
それらはすべて NULL を返します。
しかし、私が試してみると:
[self.navigationController popToRootViewControllerAnimated:TRUE];
または他の pop メソッドのいずれか、それは動作します。
なぜ私が何であるかを理解できないのpresentingViewController
ですか?
最終結果として、戻るボタンがあるかどうか、または [キャンセル] というボタンを配置する必要があるかどうかを判断する必要があります。これを理解するためのより良い方法はありますか?