私は少し調査を行い、ここで見つけた他の回答を読みましたが、実際に機能するものは見つかりませんでした。何かが投稿されたときに投稿に移動したいアプリがあります。投稿を表示しているときに戻るボタンを押すと、2つのビューに戻る必要があります。基本的に、作成ビューをスキップします。
以下は私が試したものですが、それは
警告:ビューがウィンドウ階層にないものを提示しようとしています!
-(IBAction)post{
[[self presentingViewController] dismissModalViewControllerAnimated:NO];
}
-(void)viewDidDisappear:(BOOL)animated{
[super viewDidDisappear:animated];
ViewPostViewController *dvController = [[ViewPostViewController alloc] initWithNibName:@"ViewPostViewController" bundle:[NSBundle mainBundle]];
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:dvController];
nc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:nc animated:NO];
[nc release];
}