Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @IBAction func login(sender: AnyObject)
  2. {
  3. let user = username.text;
  4. let pass = password.text;
  5. /*if let resultController = storyboard!.instantiateViewControllerWithIdentifier("SecondView") as? ViewController2 {
  6. presentViewController(resultController, animated: true, completion: nil)
  7. } */
  8. Twitter.sharedInstance().logInWithCompletion {
  9. (session, error) -> Void in
  10. if (session != nil) {
  11. print("signed in as (session!.userName)");
  12. } else {
  13. print("error: (error!.localizedDescription)");
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement