Last active
August 29, 2015 14:19
-
-
Save Baekjoon/2c6c95551ed7d7d6513d to your computer and use it in GitHub Desktop.
ssodam_viewdidload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
var loginAlertController = UIAlertController(title: "로그인", message: nil, preferredStyle: UIAlertControllerStyle.Alert); | |
loginAlertController.addTextFieldWithConfigurationHandler({ (textField) -> Void in | |
textField.placeholder = "아이디"; | |
}) | |
loginAlertController.addTextFieldWithConfigurationHandler({ (textField) -> Void in | |
textField.placeholder = "비밀번호"; | |
textField.secureTextEntry = true; | |
}) | |
presentViewController(loginAlertController, animated: true, completion: nil); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment