[iOS] Open Twitter Setting page when no Twitter account in device

#import <Social/Social.h>

SLComposeViewController *sheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
sheet.view.hidden = YES;

[_mainViewController presentViewController:sheet animated:YES completion:^{
  [_mainViewController dismissViewControllerAnimated:NO completion:nil]; // hide keyboard
}];

 

출처 : http://stackoverflow.com/questions/18982612/twtweetcomposeviewcontroller-alerts-with-no-twitter-accounts-found