更新时间:2024-06-28 GMT+08:00
显示提示信息
showToast
接口描述
该接口用于显示toast提示。
方法定义
1 | - (void)showToast:(HWMUISDKToastInfoModel *)info; |
参数描述
| 参数 | 是否必须 | 类型 | 描述 |
|---|---|---|---|
| info | 是 | HWMUISDKToastInfoModel | 提示信息 |
| 参数 | 类型 | 描述 |
|---|---|---|
| content | NSString * | 提示内容。 |
| duration | NSInteger | 提示持续时间(单位:秒)。 |
返回值
无
示例代码
1 2 3 4 5 | HWMUISDKToastInfoModel * info = [[HWMUISDKToastInfoModel alloc] init]; // 从输入框获取提示内容和提示持续时间 info.content = self.toastContentView.textField.stringValue; info.duration = self.toastDurationInfoView.textField.intValue; [[HWMBizSdk getBizOpenApi] showToast:info]; |
父主题: 界面定制