Question

PLEASE! This has been driving me crazy for hours. I know its possible to share video to Facebook,twitter ... through UIActivityViewController. PLEASE somebody tell me how to do it!!

Était-ce utile?

La solution

Simply use the ALAsset object and pass it in:

ALAsset * asset = [[ALAsset alloc] init];
[asset setVideoAtPath:urlToVideoFile completionBlock:NULL];
NSArray * activityItems = @[asset];
UIActivityViewController * activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:NULL];
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top