I am working on implementing simple Twitter integration. In my appdelegate didFinishLaunchingWithOptions I have:
This will ask for access to twitter accounts, and it works well, but after watching the WWDC video, I am not certain how to add the option to go to Settings and add a Twitter account if none exists already. After I do all this, can I simply use the pain-free Twitter integration and it can easily Tweet?
Code:
ACAccountStore *store = [[ACAccountStore alloc] init];
ACAccountType *twitterType = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[store requestAccessToAccountsWithType:twitterType withCompletionHandler:^(BOOL granted, NSError *error) {
if (granted) {
//access granted;
}
}];
[store release];