What can I do if isAvailableForServiceType
method returns NO in case of Twitter, for example?
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) {
// post message
} else {
// show some additional screen
}
Can I somehow provide the user a standard login / register view or switch him to the iOS settings? If yes, how can I do it?
Thanks in advance.
try this
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) {
//
} else {
SLComposeViewController *twitterSignInDialog = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[self presentViewController:twitterSignInDialog animated:NO completion:nil];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With