初めて iPhone アプリケーションを作成しましたが、ビューの切り替えに問題があります。まず、「presentModalViewController:animated:」を介して切り替える 2 つのビュー (ログイン、登録) があります。
しかし、誰かがログインした場合、新しい種類のビューがあるはずです。下部に UITabBar を配置したい (タブ バー コントローラー)。しかし、これはうまくいきません。AppDelegate を必要とするこのようなチュートリアルを使用できるように、新しい AppDelegate を作成しようとしました。
http://www.youtube.com/watch?v=LBnPfAtswgw&feature=player_embedded
新しいコントローラーへの切り替えは、次のように行われます。
startViewController = [[StartViewController alloc] initWithNibName:@"StartView" bundle:nil];
[UIView beginAnimations:@"View Curl" context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[self.view addSubview:startViewController.view];
[UIView commitAnimations];
表示されているビューは StartView.xib の UIView であるため、画面は白です。そこに、新しい AppDelegate、File's owner、View、TabBarController があります。ただし、UIView のみが読み込まれ、TabBarController は読み込まれません。
どうすればこの問題を解決できるか分かりますか?
感謝をこめて。