nativescript - 使用 nativescript typescript 在 ios 中关闭 Modal 时显示 FancyAlert 时 UI 将被阻止
问题描述
我正在使用原生脚本 angular 开发一个 ios 和 android 移动应用程序。我正在使用 TNSFancyalert 插件来显示警报信息,当我关闭此 TNSFancyAlert 时,对话框已关闭,但插件正在影响主 UI。这个插件有问题吗?
解决方案
尝试像这样实现:-
安装 tns 插件添加 nativescript-fancyalert。
立即导入:-
从“nativescript-fancyalert”导入 { TNSFancyAlert, TNSFancyAlertButton };
来电提醒:-
// 显示成功
TNSFancyAlert.showSuccess("Success!", "Fancy alerts are nice.", "Yes they are!" );
其他的喜欢:-
// 显示成功
TNSFancyAlert.showSuccess( "Success!", "Fancy alerts are nice.", "Yes they are!" ).then(() => { /* 用户按下按钮 */ });
推荐阅读
- ios - 在 iOS 上初始化 Spotify 时出现连接错误?
- .net - 处理当前类之外的事件
- python - 使用 Google Drive 的 API 备份文件夹
- variables - 通过 Google Analytics 跟踪 UTM 活动变量
- c++ - OpenGL反向移动
- azure-ad-b2c - 如何从 id_token_hint 中提取多个值到特定的声明中?
- java - 为什么当我单击 Fragment 类中的项目时我的应用程序会崩溃?
- c++ - 将控制台输入文本向下移动
- node.js - 无法在 Node JS 中验证代理
- python - 在列表中搜索项目并将其替换为不同的值