问题描述
根据可以将 AVAsset
对象作为数据源添加到 UIActivityTypePostToFacebook
活动。这是否意味着我们可以使用标准的 UIActivityTypePostToFacebook
活动类型发布视频?如果不是,那么可以使用 AVAsset
活动项目发送什么样的项目?
According to the UIActivity Class documentation it is possible to add AVAsset
objects as a datasource to UIActivityTypePostToFacebook
activity. Does it mean that we can post videos using the standard UIActivityTypePostToFacebook
activity type? If not then what kind of items can I post using AVAsset
activity item?
推荐答案
嗯..根据UIActivity.h
Well.. According to UIActivity.h
UIKIT_EXTERN NSString *const UIActivityTypePostToFacebook NS_AVAILABLE_IOS(6_0); // text, images, URLs
UIKIT_EXTERN NSString *const UIActivityTypePostToTwitter NS_AVAILABLE_IOS(6_0); // text, images, URLs
UIKIT_EXTERN NSString *const UIActivityTypePostToWeibo NS_AVAILABLE_IOS(6_0); // text, images, URLs
UIKIT_EXTERN NSString *const UIActivityTypeMessage NS_AVAILABLE_IOS(6_0); // text
UIKIT_EXTERN NSString *const UIActivityTypeMail NS_AVAILABLE_IOS(6_0); // text, image, file:// URLs
UIKIT_EXTERN NSString *const UIActivityTypePrint NS_AVAILABLE_IOS(6_0); // image, NSData, file:// URL, UIPrintPageRenderer, UIPrintFormatter, UIPrintInfo
UIKIT_EXTERN NSString *const UIActivityTypeCopyToPasteboard NS_AVAILABLE_IOS(6_0); // text, image, NSURL, UIColor, NSDictionary
UIKIT_EXTERN NSString *const UIActivityTypeAssignToContact NS_AVAILABLE_IOS(6_0); // image
UIKIT_EXTERN NSString *const UIActivityTypeSaveToCameraRoll NS_AVAILABLE_IOS(6_0); // image, video
仅在。这意味着唯一的图像可以使用这些标准活动类型添加为AVAsset实例。
videos are mentioned only in comments for UIActivityTypeSaveToCameraRoll
. This means that the only images can be added as AVAsset instances using these standard activity types.
这篇关于UIActivity和AVAsset数据类型使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!