tencent cloud

ActionSheet

PDF
聚焦模式
字号
最后更新时间: 2025-08-20 17:44:03
小程序 api
TMFMiniAppSDKDelegate 方法
wx.showActionSheet
(actionSheetType = 0)
- (void)showActionSheetWithTitle:(nullable NSString *)title
cancelButtonTitle:(nullable NSString *)cancelButtonTitle
cancelAction:(nullable dispatch_block_t)cancelAction
otherButtonTitleAndActions:(nullable NSArray *)otherButtonTitleAndActions
dismissBlock:(nullable dispatch_block_t)dismissBlock
presentingViewController:(UIViewController *)presentingViewController;
wx.showActionSheet
(actionSheetType = 1)
- (void)showShareViewWithTitle:(nullable NSString *)title
cancelAction:(nullable dispatch_block_t)cancelAction
otherButtonTitleAndActions:(nullable NSArray *)otherButtonTitleAndActions
dismissBlock:(nullable dispatch_block_t)dismissBlock
parentVC:(UIViewController *)parentVC;
wx.showModal
- (void)showAlertWithTitle:(nullable NSString *)title
withMessage:(nullable NSString *)message
actionBlocks:(nullable NSArray<AlertActionInfo*> *)actionTitleAndblocks
presentingViewController:(UIViewController*)presentingViewController;



帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈