Created
May 1, 2013 05:22
-
-
Save robby/5493865 to your computer and use it in GitHub Desktop.
Show "No %@ Accounts" dialog for Twitter/Facebook when using SLRequest, Social.framework, ACAccountStore and Accounts.framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_async(dispatch_get_main_queue(), ^{ | |
SLComposeViewController *composer = [SLComposeViewController composeViewControllerForServiceType: slServiceType]; | |
composer.view.hidden = YES; | |
[self presentViewController: composer animated: NO completion:^{ | |
[composer.view endEditing: YES]; | |
}]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment