Chapter 5. View Controllers
建立 View Controllers的方法有兩種
編程的方式,overloading loadView()
用 Interface Builder
2016 - 02 - 22
Chapter 4. Text input and Delegation
如何讓鍵盤消失?
當 text field 被點上,the method becomeFirstResponder() 被調用,讓鍵盤出現,要讓鍵盤消失,調用 method resignFirstResponder(),當背景View被點擊時,調用 text field 的 resignFirstResponder()
@IBOutlet var textField: UITextField!
@IBAction func dissmissKeyboard(sender: AnyObjec......
2016 - 02 - 19
Chapter 3. Views and the view hierarchy
Constraints 限制,瞭解了View物件簡的層級,就可以添加限制
Constraints 是非常實用的工具,尤其是現在iOS設備尺寸很多,需要多加練習,設計時也要考慮不同的屏幕和體驗。
2016 - 02 - 18