objective c - How to make IOS ask to grant permissions to access user accounts -


[self.acastore requestaccesstoaccountswithtype:twittertype withcompletionhandler:^(bool granted, nserror *error) {     self.bpermissiontoaccessstoregranted=granted;     [self vcontinue];     // handle error state here wish }]; 

the result of granted false. want users get asked first.

the possible cause iphone has no twitter accounts. in case want display twitter login page user can sign up.

[self.acastore requestaccesstoaccountswithtype:twittertype withcompletionhandler:^(bool granted, nserror *error) { if(granted) {     [self vcontinue]; } else {     // handle error state here wish } }]; 

do want this?


Comments

Popular posts from this blog

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -