0
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) 
{
    // Device is able to send a Twitter message
} 

How to handle option if device has not got Twitter or Facebook account to offer users open setting and add appropriate account? I mean that device will open setting page with Facebook/Twitter account settings automatically. Is this possible? Or I just need to show alert view and it is just one option to notify user about non logged in account.

Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277

1 Answers1

2

Go ahead and display the SLComposeViewController for Twitter. The system will display an alert to the user for you with a settings button:

enter image description here

Léo Natan
  • 56,823
  • 9
  • 150
  • 195
  • I was to about to re-build iOS in order to solve this issue, but then i found your solution, so simple and clean. +1 – Itai Spector Oct 18 '15 at 12:35