ios - XLPagerTabStrip 中未出现 toast 的 showMessage 函数
问题描述
我正在使用XLPagerTabStrip
,里面有两个子视图。在子视图中,我使用 showMessage 函数打印错误消息的 toast,但视图中未显示 toast。
if ( debit_amount > availBal_Amount )
{
self.showMessage("NO_SUFFICIENT_BAL", type: .error, options: [.position(.bottom),.textNumberOfLines(0)])
}
这是 showMessage 函数:
open func showMessage(_ text: String,
type: GSMessageType,
options: [GSMessageOption]? = nil) {
GSMessage.showMessageAddedTo(text: text, type: type, options: options, inView: view, inViewController: self) }
仅在XLPagerTabStrip
视图showMessage()
中不起作用。
请帮助我解决问题。
解决方案
推荐阅读
- angular - 在轮播动画中添加新项目时出现问题
- sql - 如果一个表有 'id' 列作为它的聚集索引,那么在任何其他非聚集索引中添加 'id' 列作为包含列有什么好处
- html - Firefox 和 Chrome 文件对象的区别
- java - 如何将 Oracle hextoraw 值解码为 JAVA (Big5)
- mysql - 使用 SQL 数据库 (RDS AWS) 在线刷新 powerbi
- google-chrome-devtools - 如何修复/解决 cr/lf / LF 不再在开发工具控制台中工作
- azure-logic-apps - 如何将数据从逻辑应用程序中的多个json文件传递到csv文件而不一一追加数据?
- python - 在留一法交叉验证中,如何使用 `shap.Explainer()` 函数来解释机器学习模型?
- shell - Vi:大写变音符号未正确显示
- python - 如何将参数传递给 django 表单?