iOS 13 presentation style default

我的梦境 提交于 2019-12-20 03:31:49

问题


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

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

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...


回答1:


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.



来源:https://stackoverflow.com/questions/58255801/ios-13-presentation-style-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!