In addition to importing the
Social.framework and importing the
"Social/Social.h" header from the
SLComposeViewController, the "
Accounts/Accounts.h" header will also need to be imported. To begin working with more direct access to Twitter’s APIs, two new objects first need to be created.
ACAccountStore *account = [[ACAccountStore alloc] init];ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier: ACAccountTypeIdentifierTwitter];
ACAccountStore will allow the code base to access the Twitter account that has been configured in the Settings.app, and the
ACAccountType contains the information needed for a particular type of account. The
accountType object can be queried to ...