Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 12, 2015 14:19
Show Gist options
  • Save Baekjoon/2d87ef29a0fdeda56690 to your computer and use it in GitHub Desktop.
Save Baekjoon/2d87ef29a0fdeda56690 to your computer and use it in GitHub Desktop.
ssodam-login-call
loginAlertController.addAction(UIAlertAction(title: "로그인", style: UIAlertActionStyle.Default, handler: { (alertAction) -> Void in
if let textFields = loginAlertController.textFields as? [UITextField] {
var username = textFields[0].text;
var password = textFields[1].text;
self.login(username: username, password: password);
}
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment