@interface sampleAppDelegate : NSObject <UIApplicationDelegate>{IBOutlet id textField; //画面上部のUITextFieldへの接続を定義 } これでsampleAppDelegateが画面上部のUITextFieldに対して仕事が出来る。 @property (nonatomic, retain) IBOutlet UIWindow *window; - (NSString *)applicationDocumentsDirectory; -(IBAction)sayHello:(id)sender; //画面下部のBarButtonItem押下時のアクションを定義 @end これで画面下部のBarButtomItemが押された時のアクション名が決まる。 【sample.mの編集】 @implemen