2
我一直在玩帳戶框架,在我的測試中,我拒絕應用程序訪問帳戶。現在下面的代碼每次運行時都會返回Denied。如何讓應用訪問先前被拒絕的帳戶?
[[self accountStore] requestAccessToAccountsWithType:twitterType options:nil completion:^(BOOL granted, NSError *error) {
if (granted) {
accounts = [[self accountStore] accountsWithAccountType:twitterType];
} else if (error != nil) {
NSLog(@"Failed to list Twitter accounts %@", error);
} else {
NSLog(@"Access denied");
}
}];
什麼爛是我不知道在哪裏重置它和谷歌搜索沒有幫助。我已經看到了如何在iOS上修復它,但我運行的是Mac應用程序,並且該解決方案不適用。
帳戶框架API文檔根本沒有幫助。
棕櫚的臉。