iOS6 Twitter integration

Posted by Peter Warbo on Stack Overflow See other posts from Stack Overflow or by Peter Warbo
Published on 2012-10-02T14:14:02Z Indexed on 2012/10/06 15:37 UTC
Read the original article Hit count: 454

There seems to be a difference between the iPhone simulator and actual device when checking if Twitter is available.

I check if a Twitter account is setup by using this code: [SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter];

In the simulator there is a nice UIAlertView informing the user that there are no Twitter accounts setup and two buttons one for Settings and one for Cancel.

However when I run my app on my device it will not show the above UIAlertView. Why is that? And how can I catch what button is tapped in the above UIAlertView (since I did not instantiate it?)

This is what it looks like on the simulator:

enter image description here

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about twitter