问题
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