写真を Twitter に投稿し、以下にメールする方法を簡単に見つけました。しかし、MMS の解決策はまだ見つかりません。知ってる人は助けてください..
写真をツイート
-(IBAction)tweetpicture...{
TWTweetComposeViewController *twitter = [[TWTweetComposeViewController alloc] init];
[twitter setInitialText:@""];
[twitter addImage:tweetimage.image];
[self presentViewController:twitter animated:YES completion:nil];
[self dismissModalViewControllerAnimated:YES];
}
電子メールの写真
-(IBAction)mailpicture....{
MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc] init];
[mailComposer setMailComposeDelegate:self];
if ([MFMailComposeViewController canSendMail]) {
// [mailComposer setToRecipients:[NSArray arrayWithObjects:@"", nil]];
[mailComposer setSubject:@""];
[mailComposer setMessageBody:@"" isHTML:NO];
[mailComposer setModalTransitionStyle:UIModalTransitionStyleCrossDissolve];
UIImage *xcode = mailimage.image;
NSData *xcodeData = UIImagePNGRepresentation(xcode);
[mailComposer addAttachmentData:xcodeData mimeType:@"image/png" fileName:@""];
[self presentModalViewController:mailComposer animated:YES];
[mailComposer release];
} else {
[mailComposer release];
}
}
MMS 画像
-(IBAction)sendviatext...{
//???
}
フェイスブックの写真
-(IBAction)sendtofacebook...{
???
}