SLRequest
을 사용하여 Twitter에 게시하려는 앱에서 작업하고 있습니다. 나는 그것을 시뮬레이터에서 작동하도록 만들었지 만, 내 장치에서는 작동하지 않는다.ACAccountStore가 기기의 빈 배열을 반환하지만 시뮬레이터에서 작동합니다.
[self.accountStor accountsWithAccountType:accountTypeTwitter];
내 장치에서 빈 배열을 반환하지만 시뮬레이터에 올바른 계정을 표시합니다. 왜 이런 일이 일어나는지 모르겠습니다.
나는 사용자 트위터 계정을 가져 오는 방법이 있습니다. 모양은 다음과 같습니다.
- (void)fetchTwitterAccounts
{
if (self.accountStore == nil) {
self.accountStore = [[ACAccountStore alloc] init];
}
ACAccountType *accountTypeTwitter = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
self.twitterAccounts = [self.accountStore accountsWithAccountType:accountTypeTwitter];
[self.tableView reloadData];
}
내 기기에 계정이없는 이유에 대한 아이디어가 있으십니까?
감사합니다. 작동하도록하십시오. – Anders