ビューのナビゲーションに問題があります。
私は VC に「Login」と言ってもらい、次のような別の VC から呼び出しています。
- (IBAction) btnAction
{ Login * login = [[Login alloc] init];
[self.navigationController pushViewController:login animated:YES];
}
ログイン VC には、Register と Forget Password という 2 つのボタンがあり、別の VC である RegisterVC と ForgetPassVC を呼び出します。
- (IBAction) btnRegisterNow : (id) sender
{
aRegister = [[Register alloc] initWithNibName:@"Register" bundle:nil];
[self.navigationController pushViewController:aRegister animated:YES];
}
- (IBAction) btnForgotPassword : (id) sender
{
forgotPassword = [[ForgotPasswd alloc] initWithNibName:@"ForgotPasswd" bundle:nil];
[self.navigationController pushViewController:forgotPassword animated:YES];
}
私の問題 :
ログインを呼び出すと、[self.navigationController pushViewController:login animated:YES];
すべてが正常に機能します。
しかし、一部の VC では、ログイン ページを表示する必要があります[self presentModalViewController:login animated:YES];
。現時点では、[登録] と [パスワードを忘れる] の 2 つのボタンが機能しません。ボタンをクリックしても何も起こりません。
何が問題ですか ?私はログインをpushViewContellerではなくモーダルビューとして追加したと思います??? もしそうなら、どうすればこのタスクを達成できますか?
質問が明確であることを願っています。
ありがとう...