To Optional or Not to Optional: IBOutlet

Swift에서는 선언할 때 Type을 암시적으로 랩핑되지 않은 Optional으로 만들어야 한다.

초기화 후 스토리보드가 런타임에 concept에 연결하도록 할 수 있음

@IBOutlet weak var emailField: UITextField!
@IBOutlet weak var emailField: UITextField?
//using ! - an implicitly unwrapped optional
emailField.placeholder = "Your email"

//vs ? - a standard optional, gotta test for nil first
emailField?.placeholder = "Your email"