新到的公司,要求马上改BUG,ios11跳转相机崩溃,于是我添加了隐私权限,还是出现UI界面错乱问题,还有提示上面的信息,


修改放方法:
UIViewController *topRootViewController = [[UIApplication sharedApplication] keyWindow].rootViewController;
// 在这里加一个这个样式的循环
while (topRootViewController.presentedViewController)
{
// 这里固定写法
topRootViewController = topRootViewController.presentedViewController;
}
// 然后再进行present操作
[topRootViewController presentViewController:nav animated:YES completion:nil];