Comment intégrer le support Twitter dans une application iOS?Comment intégrer le support Twitter dans une application iOS?
3
A
Répondre
3
Stefan Arentz's Twitter library est un plaisir à utiliser - il contient les vues dont vous avez besoin, il n'y a fondamentalement pas de codage à faire. Faites register your app tôt avec twitter et obtenez une soumission pour demander l'autorisation d'authentification xAuth afin que vous n'ayez pas à utiliser la méthode oAuth web maladroite. Avec xAuth, il est aussi simple que de soumettre un nom d'utilisateur et un mot de passe et de conserver le jeton d'authentification retourné pour envoyer un tweet.
0
est un exemple:
Appel -(void)sendTweet
de votre IBAction.
// Sending tweets from within the application
-(void)sendTweet {
// check if device capable of sending tweets
if([TWTweetComposeViewControllercanSendTweet])
{
TWTweetComposeViewController *tweetSheet = [[TWTweetComposeViewControlleralloc] init];
[tweetSheet setInitialText:@"Twitting from my iSecret App"];
self.imageString = @"theSecret.png";
if(self.imageString) {
[tweetSheet addImage:[UIImageimageNamed:self.imageString]];
}
[selfpresentModalViewController:tweetSheet animated:YES];
}
else {
UIAlertView *alert = [[UIAlertViewalloc]initWithTitle:@"Sorry"message:@"You can't send a tweet right now, make sure your device has an internet connection and you have at least one Twitter account setup"delegate:selfcancelButtonTitle:@"Ok"otherButtonTitles:nil];
[alert show];
}
}
Questions connexes
- 1. Intégrer Twitter dans une application BlackBerry
- 2. comment intégrer twitter dans mon application iphone
- 3. Comment intégrer un profil de provisioning dans une application iOS?
- 4. intégrer twitter dans mon application iphone
- 5. comment intégrer une application web existante avec une application Android
- 6. Comment intégrer twitter, facebook dans l'application iPhone
- 7. Comment intégrer paypal dans une application?
- 8. Comment intégrer des données dans une application
- 9. comment intégrer le module développé dans une application winform séparée?
- 10. Comment intégrer une application XUL dans le navigateur SWT?
- 11. Comment intégrer les informations de localisation dans l'application Twitter?
- 12. Intégrer une application Silverlight dans une autre application Silverlight
- 13. Comment intégrer le contrôle de panneau coulissant utilisé sur Twitter?
- 14. Comment intégrer twitter dans l'application iphone en utilisant oauth
- 15. Comment intégrer le support pour les plugins Autopaging
- 16. Support hébreu dans une application Cncurses
- 17. intégrer Google Sky Map dans une application
- 18. Comment intégrer une mini-console dans une application Java?
- 19. Blackberry: comment intégrer une vidéo YouTube dans une application
- 20. Comment intégrer une vidéo YouTube qui fonctionnera avec le clavier de support dans Firefox?
- 21. Comment intégrer une application Web ASP.NET dans une autre?
- 22. comment créer une application personnalisée sur twitter?
- 23. Comment intégrer une bibliothèque python dans une application C++?
- 24. Intégrer une application Silverlight dans une application Windows Forms
- 25. annonces Intégrer dans une application Windows
- 26. Comment intégrer Flash dans une application de bureau dans .NET?
- 27. Twitter Application
- 28. Intégrer le traducteur Zend dans mon application
- 29. Comment intégrer SAML dans mon application Rails?
- 30. Comment intégrer une application GWT dans un autre Web-Framework?