13演示文稿样式默认

13演示文稿样式默认

本文介绍了iOS 13演示文稿样式默认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iOS应用中,大约有60个来自旧代码的present(_:animate:complition)调用.

In my iOS app I have about 60 present(_:animate:complition) calls from legacy code.

iOS 13刚刚将默认的presentationStyle更改为Automatic,这实际上意味着.formSheet样式.

iOS 13 just changed the default presentationStyle to Automatic which actually means .formSheet style.

是否可以快速将所有应用程序的默认值更改回.fullScreen?可能像在infoPlist中或某些全局协议(如UIAppearance协议)中一样?如果没有办法,我需要在60个位置手动设置presentationStyle ...

Is there a quick way to change the default back to .fullScreen on all the app? maybe like in the infoPlist or some global protocol like UIAppearance Protocol? If there's no way i need to set the presentationStyle manually in 60 places...

推荐答案

不幸的是,没有可以覆盖的全局变量来更改此设置.这是新操作系统更新的全部内容!接受更改,然后手动更改所有更改.这也有助于代码管理和将来对应用程序的验证.现在有点头痛,从长远来看可以有所帮助.

Unfortunately there is no global variable to override to change this. This is all part of updating for the new OS's! Embrace the change, and change them all manually. This helps with code management and future proofing the app too. A small headache now which can help in the long run.

这篇关于iOS 13演示文稿样式默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:49