Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 12, 2015 13:56
Show Gist options
  • Save Baekjoon/556fa765c2e26530d381 to your computer and use it in GitHub Desktop.
Save Baekjoon/556fa765c2e26530d381 to your computer and use it in GitHub Desktop.
ssodam_viewdidload2
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