如何将Twitter支持整合到iOS应用程序中?如何将Twitter支持整合到iOS应用程序中?
3
A
回答
3
Stefan Arentz's Twitter library是一个很高兴使用 - 它包含你需要的意见,基本上没有编码要做。使用twitter尽早完成register your app并获得提交请求xAuth身份验证权限,以便您不必使用笨拙的基于Web的oAuth方法。使用xAuth就像提交用户名和密码一样简单,并保持返回的身份验证令牌提交推文。
0
下面是一个例子:
呼叫-(void)sendTweet
从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];
}
}
相关问题
- 1. 将Twitter整合到iPhone应用程序
- 2. 如何将twitter,facebook整合到iPhone应用程序中?
- 3. 如何将位置信息整合到Twitter应用程序中?
- 4. 将Twitter整合到BlackBerry应用程序中
- 5. 将facebook,linkedin,twitter整合到android应用程序
- 6. 将opentok视频会议整合到parse.com + iOS应用程序中
- 7. 将64位支持扩展到现有的iOS应用程序
- 8. 如何将蓝牙键盘支持添加到iOS应用程序?
- 9. 将谷歌联系人整合到iOS应用程序(swift)?
- 10. 如何将facebook整合到我的iphone应用程序中
- 11. 如何将Nokogiri整合到Rails应用程序中
- 12. 如何将Google的reCAPTCHA整合到React Native应用程序中?
- 13. 如何将qml文件整合到qt-widgets应用程序中?
- 14. 如何将iAd整合到我的Flash应用程序中?
- 15. 如何将谷歌地图整合到struts2应用程序中
- 16. 如何将Webcam整合到Java的Swing应用程序中?
- 17. 如何将文档扫描整合到Qt应用程序中?
- 18. 如何将phpThumb整合到CodeIgniter应用程序的架构中?
- 19. 如何将WebDAV整合到我的iPhone应用程序中?
- 20. 如何将Zoom.us整合到我的angularJS应用程序中?
- 21. 如何将dagger2整合到GWT应用程序中?
- 22. 如何将贝宝整合到JSF应用程序中
- 23. 如何将torrent下载整合到android应用程序中?
- 24. 如何将CardSpace支持添加到您的ASP.NET应用程序
- 25. 如何将iPad支持添加到PhoneGap应用程序?
- 26. 如何在整个android应用程序中保持java集合
- 27. 将twitter数字与cordova/phonegap应用程序整合在一起?
- 28. 我可以将iOS 7支持添加到仅作为iOS 8应用程序发布的应用程序吗
- 29. 如何支持iPhone,iPad和iPad的iOS应用程序迷你
- 30. 如何让我的应用程序支持iOS 4?