Date post: | 14-Jul-2015 |
Category: |
Software |
Upload: | seyfeddin-bassarac |
View: | 460 times |
Download: | 0 times |
TWTRLogInButton* logInButton = [TWTRLogInButton buttonWithLogInCompletion: ^(TWTRSession* session, NSError* error) { if (session) { NSLog(@"signed in as %@", [session userName]); } else { NSLog(@"error: %@", [error localizedDescription]); } }]; logInButton.center = self.view.center; [self.view addSubview:logInButton];
-‐ (void)viewDidLoad { DGTAuthenticateButton *digitsButton = [DGTAuthenticateButton buttonWithAuthenticationCompletion:^ (DGTSession *session, NSError *error) { // Inspect session/error objects }]; [self.view addSubview:digitsButton]; }