6/01/2011

[iPhone] 使用Interface builder正確步驟

使用Interface builder正確步驟:
1.用interface builder建立ui
2.toos/library 加入需要的ui view 元件
3.ViewController.h 加入instance variable : iLabel , iButton
4.ViewController.h 加入method "changeDisplay" , Action
5.ViewController.m 加入@synthesize,表示實做並放置view上
6.ViewController.m 加入method 的code , 如按下按鈕的動作內容
7.Tools/Connections Inspactor (File's Owner) , 連接

沒有留言:

張貼留言

請留言~一起討論吧~