質問

The title is the question. NOTE: This question is limited to the iOS Simulator - things work better on the device.

I'm building a client that accesses Twitter via a Twitter account on the iPhone. The first thing it does is ask for permission to accounts, via the requestAccessToAccountsWithType:options:completion: method of ACAccountStore. The completion handler selects the account if there is only one and allows the user to choose an account when more than one. Further, it presents an alert about limited functionality if access is denied.

I'm trying to verify the completion handler for that method, particularly the part where access is denied, but I'm having no joy in that endeavor.

My first thought was to check in Settings > Privacy > Twitter. No apps are listed (even though my app is actually accessing the account), so I can't modify it there. I've tried Settings > General > Reset > Reset Location & Privacy but no joy there either. There does not seem to be a menu item for this either.

役に立ちましたか?

解決

It's a hardcore way of resetting, but if the other methods you've tried don't work, then this should. Go to iOS Simulator->Reset Content and Settings...

How to reset Content and Settings

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top