Can I customize Login button of Twitter kit in iOS?
As per the document :
Add the code in your button press :
Objective-C
[[Twitter sharedInstance] logInWithCompletion:^
(TWTRSession *session, NSError *error) {
if (session) {
NSLog(@"signed in as %@", [session userName]);
} else {
NSLog(@"error: %@", [error localizedDescription]);
}
}];
Swift
Twitter.sharedInstance().logInWithCompletion {
(session, error) -> Void in
if (session != nil) {
println("signed in as \(session.userName)");
} else {
println("error: \(error.localizedDescription)");
}
}