xcodeで新しいタブバーアプリケーションテンプレートを作成しました。ボタンが押されたときに(スライドアップ)でアニメーション化する新しいビューを適切に設定するにはどうすればよいですか?私はこれがNavigationControllerを使用して行われるのを見てきました。
次のコードを使用してサブビューを追加するアクションを含むナビゲーションバーとボタンを追加しました。
(IBAction)newPost:(id)sender
{
// Load UIViewController from nib
PostViewController *screen = [[PostViewController alloc] initWithNibName:@"PostViewController" bundle:nil];
// Add to UINavigationController's stack, i.e. the view for this UITabBarController view
[self.view addSubview:screen.view];
// Release music, no longer needed since it is retained by the navController
[screen release];
}