【发布时间】:2014-04-18 18:38:42
【问题描述】:
- (void)authTwitter {
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[accountStore requestAccessToAccountsWithType:accountType
options:nil
completion:^(BOOL granted, NSError *error){
if (granted) {
NSArray *accounts = [accountStore accountsWithAccountType:accountType];
// always there, but accounts array is empty
} else {
}
}];
我期待看到来自 iOS 的一些提示,但总是同意。 我没有在我的 iPhone 上设置帐户。
这是否意味着我编程的时间太长了,应该出去玩?或者我只是错过了什么?
iOS 7,设备和模拟器都有相同的行为。
【问题讨论】:
-
删除应用重新安装,还是没有提示吗?
-
是的,还是没有提示
-
显然您可以在没有任何帐户的情况下启用对 Twitter 帐户的访问。提示似乎只出现一次,稍后用户可以在“设置”>“隐私”中更改决定。
-
是的,我注意到在删除应用程序并再次安装后 -> 它出现在 Twitter 设置中,其值是我之前设置的......
-
奇怪的是,我从未允许该应用程序使用 twitter 帐户,所以我从未看到该应用程序的确切提示