私はUIActivityViewControllerを使用してiOS6と私のコードで画像を共有しています
UIImage *shareImage = [UIImage imageNamed:@"myImage.png"];
// Init array
NSMutableArray *items = [NSMutableArray new];
[items addObject:@""];
[items addObject:shareImage];
// Add image to paste board
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.persistent = YES;
pasteboard.image = shareImage;
UIActivityViewController *activityVC = [[UIActivityViewController alloc]initWithActivityItems:items applicationActivities:nil];
//This is an array of excluded activities to appear on the UIActivityViewController
activityVC.excludedActivityTypes = @[UIActivityTypePostToWeibo,
UIActivityTypePrint,
UIActivityTypeCopyToPasteboard,
UIActivityTypeAssignToContact,
UIActivityTypeSaveToCameraRoll];
[self presentViewController:activityVC animated:TRUE completion:nil];
すべて正常に動作していますが、shareImageをiMessageに貼り付けることはできません。どうしてか分かりません?お手伝いありがとうございます!