I am using TWTweetComposeViewController to access a user's twitter account(s), which he/she has added in Settings -> Twitter. When the app attempts to access a twitter account, it should presente an alert with a message similar to this:
"[AppName] Would Like Access to Twitter Accounts"
To which you can tap either "Don't allow" or "OK". I suppose this is an alert displayed by the OS itself, since tapping "OK" actually enables access to twitter.
The above alert is displayed when I test it on an iOS 5.x device, but that is not the case when I test it on an iOS 6 device. I expect the alert to be presented when I send the following message, and I have not yet gained my app access to Twitter in settings:
[TWTweetComposeViewController canSendTweet]
As described, it does not happen. Does anyone know if this is a known bug in iOS 6? I have been unable to find any posts on SO and since I can find no other reason to the different behavior I believe it's a bug.
FYI, I am testing this on the following two devices:
- iPhone 4 with iOS 5.1
- iPhone 4 with iOS 6.0
Update
I use DETweetComposeViewController, which checks for iOS 5 in the following way:
+ (BOOL)de_isIOS5
{
return (NSClassFromString(@"NSJSONSerialization") != nil);
}
But since the NSJSONSerialization class is represented in iOS 6 as well, this shouldn't be the reason.