Presenting view controllers on detached view controllers is discouraged <UINavigationController: 0x14642710>.的解决方法:
[self.view.window.rootViewController presentViewController:controlleranimated:YEScompletion:nil];
本文探讨了在iOS应用开发中遇到的警告信息,即在脱离视图控制器上呈现视图控制器的问题,并提供了解决方案。通过实例演示了如何正确使用窗口和根视图控制器来避免该警告,确保应用的稳定性和用户体验。
Presenting view controllers on detached view controllers is discouraged <UINavigationController: 0x14642710>.的解决方法:
[self.view.window.rootViewController presentViewController:controlleranimated:YEScompletion:nil];

被折叠的 条评论
为什么被折叠?