swift - 灯箱控制器尝试呈现
问题描述
尝试在视图不在窗口层次结构中的 <UIViewController: 0x7f8865d2d630> 上呈现 <Lightbox.LightboxController: 0x7f8862022600>![在此处输入图像描述][1]
更多描述请参见附件... [1]:https ://i.stack.imgur.com/XTnvs.png
请帮助解决此错误
在 UITableViewCell 中调用(preVC 是主视图控制器)
let controller = LightboxController(images: self.imgArrMain, startIndex: indexPath.row)
controller.pageDelegate = self
controller.dismissalDelegate = self
controller.dynamicBackground = true
controller.modalPresentationStyle = .fullScreen
preVC.present(controller, animated: true, completion: nil)}
解决方案
推荐阅读
- c# - 屏幕截图安全桌面
- javascript - 递归调用如何在函数中工作?
- excel - 粘贴后不显示日期
- laravel-5.6 - 有什么办法可以在 laravel 中从 $request->all() 中排除空字段?
- android - 离子 android:navigationBarColor
- ionic-framework - 离子应用程序 url 找到 localhost 而不是文件夹
- php - 如何将数组从 Android 发送到 PHP 服务器
- sql - SQL select distinct 当一列在另一列大于
- java - 如何延迟函数调用?
- javascript - 使用javascript计算最近的礼物位置