11

iOS アプリケーションの開発は初めてです。ボタンをクリックview controllerして別のアプリケーションに移動する方法を教えてください。view controller

4

7 に答える 7

7

これを試して:

nextViewController *obj =[[nextViewController alloc]initWithNibName:@"nextViewController" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
[obj release];
于 2012-10-08T04:42:18.750 に答える
5

あなたはアプローチのいずれかを使用することができます-

  1. pushViewController:animated:-ナビゲーションスタックにビューをプッシュするには

  2. presentModalViewController:ncアニメーション:-ビューをモーダルに表示します。

于 2012-04-25T04:12:25.077 に答える
4
YourSecondViewcontroller *temp = [[YourSecondViewcontroller alloc]initWithNibName:@"YourSecondViewcontroller" bundle:nil];
[self.navigationController pushViewController:temp animated:YES];

//また

[self presentModalViewController:temp animated:YES];

Visit this reference for tutorial and working demo code

願わくば、これはあなたを助けるでしょう..お楽しみください

于 2012-04-25T04:12:23.830 に答える
2

//SAViewController は宛先ビューになります

// 現在のビューに SAViewController.h ファイルをインポートします

SAViewController *admin = [[SAViewController alloc]initWithNibName:@"SAViewController" bundle:nil];
[self presentModalViewController:admin animated:YES];
[admin release];
于 2012-04-25T04:35:36.363 に答える