ActionSheetIOS
方法
static showActionSheetWithOptions(options, callback)
显示iOS操作表。该options对象必须包含以下一项或多项:
options(array of strings) - 按钮标题列表(必需)
cancelButtonIndex(int) - 取消按钮的索引options
destructiveButtonIndex(int) - 破坏性按钮的索引options
title(string) - 显示在操作表上方的标题
message(string) - 在标题下面显示的消息
static showShareActionSheetWithOptions(options, failureCallback, successCallback)
显示iOS分享表。的options对象应包含一个或两个的message和url,并且可以附加地具有subject或excludedActivityTypes:
url(string) - 要共享的URL
message(string) - 要共享的消息
subject(string) - 消息的主题
excludedActivityTypes(string) - 从ActionSheet中排除的活动
注意:如果url指向本地文件,或者是base64编码的uri,则它指向的文件将被加载并直接共享。通过这种方式,您可以分享图片,视频,PDF文件等。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

