「はじめてのiPhone3プログラミング」感想メモ
つまづいたポイントをメモ。
サンプルコードのダウンロード
ここ(http://www.wykiwyk.com/iphone/walkthrough/)を読まないとダウンロード手順がわからなかった。。。
第3章
サンプルコード「03 Button Fun」だと、本の手順通りに試すとうまくいかない。
ソースを下記のようにしておしておかないと、Outlet のマウスドラッグでの追加はできない。
// // Button_FunViewController.h // Button Fun // #import <UIKit/UIKit.h> @interface Button_FunViewController : UIViewController { UILabel *statusText; IBOutlet id buttonPressed; } @property (nonatomic, retain) IBOutlet UILabel *statusText; - (IBAction)buttonPressed:(id)sender; @end
うまくいかないなぁと思って、こちらを見て↓気づきました。
http://ameblo.jp/micro-garden/entry-10322647497.html
まだ本の最初の方しか読めていないから、全部読み終わったらまた書き足す。