2010年7月22日 星期四

iPhone / iPad -- 程式撰寫 教學篇 -- User interface controls

在使用者界面的控制上,一共有基本的三種型式。iPhone / iPad 也提供這三種型式。

button 按鈕,屬於 主動式,可以用來趨動某些 動作方法

Label 標籤,屬於 靜態式,只能用來呈現某些資訊,使用者無法直接改變。

Text Field 文字框,屬於 被動式,使用者輸入文字後,系統將在某些時候取用其內容。

Three basic forms
有基本的三種型式 ( Active、Static、Passive)

Active
Button, trigger action methods
Static
Label, user can’t do anything with it
Passive
Text field, user input and hold it until you’re ready for it