FWIW、アニメーションGIFは、ユーザーがメールを選択した場合、自動的に電子メールでGIFを移入うのiOS 6での新しい共有シート、に電子メールで動作するように表示されます。
NSString *gifPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"volleyball.gif"];
NSData *gifData = [[NSData alloc] initWithContentsOfFile:gifPath];
NSArray *activityItems = [NSArray arrayWithObjects:@"Here is an awesome body for the email.",gifData,nil];
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
activityController.completionHandler = ^(NSString *activityType, BOOL completed){
// item was shared!
// you can check if it was email (or another type, like facebook or twitter) in the *activityType.
// completed is YES if they actually shared it, if they canceled, completed will be NO.
};
[navigationController presentViewController:activityController animated:YES completion:nil];
ありがとう!今働いている。実際に私は昨日このことを試してみましたが、forPasteboardTypeセクションでうんざりしていたので、それはうまくいきませんでした。私はとても絶望的になったので、もう一度投稿しました... Btw、「com.compuserve.gif」は何ですか?または、 "forPasteboardType"のパラメータとして使用する必要があるもの????? – mayuur
[UTI](http://www.escape.gr/manuals/qdrop/UTI.html)です。 –
私はそれを持っています。ありがとう、トン! – mayuur