如何让IOS要求授予访问用户帐户的权限

时间:2013-05-03 06:02:34

标签: objective-c

[self.ACAstore requestAccessToAccountsWithType:twitterType withCompletionHandler:^(BOOL granted, NSError *error) {
    self.bPermissionToAccessStoreGranted=granted;
    [self vContinue];
    // Handle any error state here as you wish
}];

授予的结果完全是假的。我想让用户先被问到。

可能的原因是iPhone没有推特账号。在这种情况下,我想显示一个Twitter登录页面,以便用户可以注册。

1 个答案:

答案 0 :(得分:2)

[self.ACAstore requestAccessToAccountsWithType:twitterType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted)
{
    [self vContinue];
}
else {
    // Handle any error state here as you wish
}
}];

你想要这个吗?

相关问题