私はiPhoneアプリを使っています。presentModalViewController iPhone
ProfileViewController *ProfilePage = [[ProfileViewController alloc] initWithNibName:@"ProfileViewController" bundle:nil];
ProfilePage.RequestType = 2;
ProfilePage.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
UINavigationController *navigationControllerNew = [[UINavigationController alloc] initWithRootViewController:ProfilePage];
//Present navigationController as Model viw controller
[self.navigationController presentModalViewController:navigationControllerNew animated:YES];
//release it After presenting to it
[navigationControllerNew release];
[ProfilePage release];
そのが正常に動作しますが、私はProfileViewControllerの「ラストビュー」ボタンをクリックした後に戻って同じページに来るとき、それは再びが、後に戻ってくる:私は、次のコードで(HomeViewControllerから)ProfileViewControllerにジャンプしなければなりません戻ってくる。戻るボタンのpopToViewController
がHomeScreenControllerで機能しません。スタック内の新しいナビゲーションコントローラが原因である可能性があります。
私は間違いを犯していますか?戻るボタンをもう一度動かすためにどのように実装できますか?
を。今はうまくいきます。 –
あなたは大歓迎です。 – Ilanchezhian