Created
April 12, 2015 13:56
-
-
Save Baekjoon/556fa765c2e26530d381 to your computer and use it in GitHub Desktop.
ssodam_viewdidload2
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; | |
}) | |
loginAlertController.addAction(UIAlertAction(title: "로그인", style: UIAlertActionStyle.Default, handler: { (alertAction) -> Void in | |
})) | |
presentViewController(loginAlertController, animated: true, completion: nil); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment