[self.ACAstore requestAccessToAccountsWithType:twitterType withCompletionHandler:^(BOOL granted, NSError *error) {
self.bPermissionToAccessStoreGranted=granted;
[self vContinue];
// Handle any error state here as you wish
}];
授予的结果完全是假的。我想让用户先被问到。
可能的原因是iPhone没有推特账号。在这种情况下,我想显示一个Twitter登录页面,以便用户可以注册。
答案 0 :(得分:2)
[self.ACAstore requestAccessToAccountsWithType:twitterType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted)
{
[self vContinue];
}
else {
// Handle any error state here as you wish
}
}];
你想要这个吗?