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

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

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -