我想与分享YouTube
视频。Facebook
UIActivityViewController
所以我创建UIActivityViewController
:
UIActivityViewController *activityViewController = [[UIActivityViewController alloc]
initWithActivityItems:activityItems applicationActivities:applicationActivities];
YouTubeAppDelegate *md = (YouTubeAppDelegate*)[[UIApplication sharedApplication] delegate];
[self presentViewController:activityViewController animated:YES completion:^{}];
我将 YouTube 链接添加到此。
但是当我按下Facebook
按钮时UIActivityViewController
,它会将其作为文本发布在Facebook
而不是嵌入视频播放器中。知道我该如何解决吗?