[英]share image on twitter and get favourites list from iOS native app
[英]Share image on twitter in IOS
您好,我想通过我的APP在Twitter上分享图片。 我通过以下代码成功地鸣叫了文本。如何用文本鸣叫图像。
-(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"];
}
}
您是否考虑过使用iOS 5的Twitter Framework ? 特别是,请查看TWTweetComposeViewController ,它使您可以轻松添加图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.