首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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对象应包含一个或两个的messageurl,并且可以附加地具有subjectexcludedActivityTypes

  • url (string) - 要共享的URL
  • message (string) - 要共享的消息
  • subject (string) - 消息的主题
  • excludedActivityTypes (string) - 从ActionSheet中排除的活动

注意:如果url指向本地文件,或者是base64编码的uri,则它指向的文件将被加载并直接共享。通过这种方式,您可以分享图片,视频,PDF文件等。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com