モーダルビューの表示
iPhone SDKで画面の遷移のやり方がやっとわかりました。
一度わかってしまえばなんてことないのですが、今までの経験(VB,Swing,Android...etc)が全く通用しないので苦労します。
Interface Builderの使い方にもようやく慣れてきました。
道のりはまだまだ長い...。
ちなみにやり方はUIViewControllerのボタンクリックイベントで以下のようにするとできます。
-(IBAction)chengeScreen:(id)sender { HogeViewController *modalViewController = [[[HogeViewController alloc] initWithNibName:@"HogeControllerView" bundle:nil] autorelease]; [self presentModalViewController:modalViewController animated:YES]; }
nibファイルの名前を間違えて書いてもエラーにならないので注意が必要です。