Hello guys,
I have very strange problem. The completionBlock on TWTRLogInButton does not work. Here is my code:
AppDelegate.m
[TwitterKit startWithConsumerKey:@"**********" consumerSecret:@"*****************"];
[Fabric with:@[Twitter]];
MyViewController.m
In my viewDidLoad method:
self.btnLoginTwitter = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession* session, NSError* error) {
if (session) {
NSLog(@"signed in as %@", [session userName]);
} else {
NSLog(@"error: %@", [error localizedDescription]);
}
}];
And I get this error:
TWTRLogInButton was created with no completionBlock set
What do I need to do to?
Thank you