【发布时间】:2019-05-19 13:51:58
【问题描述】:
我正在使用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() 不起作用。
请帮我解决问题。
【问题讨论】:
-
能分享一下showMessage()的代码吗?
-
@TaimoorSuleman 我已更新问题请查找功能。
-
哦。您正在为此使用 pod
-
是的@TaimoorSuleman
-
检查视图层次结构。视图是否显示在 XLPager 的视图后面
标签: ios iphone swift xcode macos