Name: TwitterLogIn
Owner: Droids On Roids
Description: null
Created: 2015-12-18 13:53:53.0
Updated: 2015-12-18 14:02:57.0
Pushed: 2015-12-21 20:17:00.0
Homepage: null
Size: 3314
Language: Swift
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Currently, most mobile applications have the option to login by social networks. This sample Swift project was created to show simple and fast solution for login by Twitter using Parse service. So, with a few lines of code I have created complete login view like this:
ction func signInButtonAction(sender: UIButton) {
if PFUser.currentUser() == nil {
let parseAutomaticViewController = PFLogInViewController()
parseAutomaticViewController.fields = [.Twitter, .DismissButton]
parseAutomaticViewController.delegate = self
presentViewController(parseAutomaticViewController, animated: true, completion: nil)
}
}
You can find complete description and alternative solution on Droids On Roids Blog