Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func login(sender: AnyObject)
- {
- let user = username.text;
- let pass = password.text;
- /*if let resultController = storyboard!.instantiateViewControllerWithIdentifier("SecondView") as? ViewController2 {
- presentViewController(resultController, animated: true, completion: nil)
- } */
- Twitter.sharedInstance().logInWithCompletion {
- (session, error) -> Void in
- if (session != nil) {
- print("signed in as (session!.userName)");
- } else {
- print("error: (error!.localizedDescription)");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement