我知道在iOS 5中,使用Twitter框架访问已配置的Twitter账户可以采取以下步骤:
ACAccountStore *t_account = [[ACAccountStore alloc] init];
ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[account requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
if (granted == YES) {
}
}
但问题是我不需要完整的账户,我只想要如果他在Twitter上配置了账户,那么获取twitter账户名。所以,是否有一种方法可以从框架中获取只有Twitter账户(而不是完整的账户)而无需请求任何用户权限?