如何在 Tabbar 上显示的 VC 上显示 VC
How to present VC on VC which is presented on Tabbar
尝试用 vc1.modalPresentationStyle = .overFullScreen
呈现 VC1 时
在 VC2 上显示在带有 vc2.modalPresentationStyle = .overFullScreen
的 TabBar 上不显示 VC2 并且在控制台中收到消息:
Attempt to present <Demo.Secreen2VC: 0x7fb103088260> on
<UINavigationController: 0x7fb10282da00> (from <UINavigationController:
0x7fb1020a9000>) which is already presenting <Demo.Secreen1VC: 0x7fb10142aee0>.
我认为我们不能在另一个 VC 上展示 VC 展示风格:vc1.modalPresentationStyle = .overFullScreen
任何帮助都将不胜感激。谢谢
使用
self.present(vc, animated: true, completion: nil)
第二个礼物
尝试用 vc1.modalPresentationStyle = .overFullScreen
呈现 VC1 时
在 VC2 上显示在带有 vc2.modalPresentationStyle = .overFullScreen
的 TabBar 上不显示 VC2 并且在控制台中收到消息:
Attempt to present <Demo.Secreen2VC: 0x7fb103088260> on
<UINavigationController: 0x7fb10282da00> (from <UINavigationController:
0x7fb1020a9000>) which is already presenting <Demo.Secreen1VC: 0x7fb10142aee0>.
我认为我们不能在另一个 VC 上展示 VC 展示风格:vc1.modalPresentationStyle = .overFullScreen
任何帮助都将不胜感激。谢谢
使用
self.present(vc, animated: true, completion: nil)
第二个礼物