2

When making a networking request using the ACAccount and SLRequest objects in iOS, an alert appears when the app runs that asks

X app would like access to Twitter accounts

with buttons for "Don't Allow" and "OK.

Where does this alert get called from? What method/object is it associated with? Where can I modify this alert and can I modify it so the user can pick from accounts?

noobsmcgoobs
  • 2,716
  • 5
  • 32
  • 52

1 Answers1

3

It's this method [ACAccountStore – requestAccessToAccountsWithType:options:completion:] that shows this alert. that's why there's a completion block, it is only called after the user taps one of the buttons, or on some errors.

The completion block gives you a pointer to an array of accounts if the user gives you permission, so maybe you could present another alert for him to choose from these accounts.

riadhluke
  • 880
  • 6
  • 18
  • Thanks, I guess the third paragraph in your answer makes sense. Get access to all accounts then make user choose. Weird there's no way to easily adjust that though, maybe for the best. – noobsmcgoobs Mar 12 '14 at 07:12