Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Last active August 29, 2015 14:19
Show Gist options
  • Save Baekjoon/2c6c95551ed7d7d6513d to your computer and use it in GitHub Desktop.
Save Baekjoon/2c6c95551ed7d7d6513d to your computer and use it in GitHub Desktop.
ssodam_viewdidload
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