Created
July 16, 2012 17:10
-
-
Save emersonbroga/3123819 to your computer and use it in GitHub Desktop.
Emerson Carvalho.com >> iOS 6: Integração do Twitter e Facebook (snippet 2)
This file contains 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
//Cria o ComposeViewController | |
SLComposeViewController *facebookViewController = [SLComposeViewController composeViewControllerForType: SLServiceTypeFAcebook]; | |
//Cria o Texto inicial | |
[facebookViewController setInitialText: @"Foto Bacana"]; | |
//Cria a imagem a ser compartilhada | |
[facebookViewController addImage: [UIImage imageNamed:@"foto.png"]]; | |
[self presentViewController: facebookViewController animated: YES completion: nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment