Java人によるObjective-C挑戦 前回の続きです。 モーダルの2画面目から値付きで1画面目に戻します。 まず、2画面目のdelegateを1画面目にする為 プロパティを用意します。(javaで言うインターフェース) // SeccondViewDelegate.h #import @protocol SecondViewDelegate - (void) secondClose:(NSString*)text; @end 2画面目のControllerヘッダに delegate格納先とテキストボックスのアウトレット 後、ボタン押した時に動くメソッドを準備します。 // SecondViewController.h #import #import "SecondViewDelegate.h" @interface SecondViewController : UIViewContr