[英]Share image on twitter in IOS
HI I want to share Image on twitter from my APP. 您好,我想通过我的APP在Twitter上分享图片。 I have tweet text succesfully by following code.How can I tweet image with text.
我通过以下代码成功地鸣叫了文本。如何用文本鸣叫图像。
-(IBAction)updateTwitter{
if(!_engine){
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
_engine.consumerKey = kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;
}
if(![_engine isAuthorized]){
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:_engine delegate:self];
if (controller){
[self presentModalViewController: controller animated: YES];
}
}
if([_engine isAuthorized]){
[_engine sendUpdate:@"This is my first test"];
}
}
Have you considered using iOS 5's Twitter Framework ? 您是否考虑过使用iOS 5的Twitter Framework ? In particular, check out TWTweetComposeViewController , which lets you add images easily.
特别是,请查看TWTweetComposeViewController ,它使您可以轻松添加图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.