Twitter.framework を使用している場合は、このプロパティによって Twitter アカウントがデバイスから同期されているかどうかを常に確認できます。
@property (nonatomic, retain) ACAccount *account;
TWRequest.h で
Social.framework を使用している場合も同様のプロパティがあります
@property (retain, NS_NONATOMIC_IOSONLY) ACAccount *account;
SLRequest.h 内
上記のプロパティは Nil を返します。これらのステートメントをシミュレーターで試してみたところ、うまくいきました
ACAccountStore *accountStore = [[ACAccountStore alloc] init] ;
ACAccountType *twitterAccountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
NSArray *twitterAccounts = [accountStore accountsWithAccountType:twitterAccountType];
if(twitterAccounts)
{
NSLog(@"twitterAccounts: %@",twitterAccounts);
}
アレイ内のシミュレーターで Twitter アカウントの詳細を同期しました。デバイスでも同じように動作することを願っています。