別のビューコントローラーに移動する必要がperformSegueWithIdentifier
ありますが、現在使用しているビューコントローラーも削除する必要があります。これを行うにはどうすればよいですか。これを試しましたが、機能しません:
[self performSegueWithIdentifier:@"next" sender:self];
[self dismissViewControllerAnimated:NO completion:nil];
//tried the other way, but it doesn't work either
[self dismissViewControllerAnimated:NO completion:nil];
[self performSegueWithIdentifier:@"next" sender:self];
これを行う簡単な方法はないように見えますか?私は4つのViewControllerを持っています。それらはこのように接続されており、ゲームオーバーからハイスコアに行きたいです。
menu-->game----->gameover
menu-->highscore