您好我正在尝试使用UIActivityViewController分享视频,但它没有显示电子邮件选项。它显示Facebook和消息选项。但在原生照片应用中,它在同一视频上显示电子邮件共享选项。所以请有人告诉我为什么它没有在我的应用程序中显示电子邮件选项。这是我的代码:
NSURL* url=[NSURL URLWithString:@"asset url here"];
[self shareItems:[NSMutableArray arrayWithObjects:url,nil]];
- (IBAction)shareItems:(NSMutableArray*)shareItems {
UIActivityViewController *shareController =
[[UIActivityViewController alloc]
// actual items are prepared by UIActivityItemSource protocol methods below
initWithActivityItems: shareItems
applicationActivities :nil];
[self presentViewController: shareController animated: YES completion: nil];
}
如果Asset Url是图像,则相同的代码正常工作(显示电子邮件选项)。视频出现问题。我已尝试使用iOS7的iPhone5。