在iOS 13中,通过将modalPresentationStyle设置为UIModalPresentationFullScreen,可以使呈现的UIViewController全屏显示。
但是,当在SKStoreProductViewController上设置modalPresentationStyle时,它不起作用。
如何在演示时使其全屏显示?
发布于 2019-09-15 19:51:46
不幸的是,你不能。根据苹果的开发者文档,SKStoreProductViewController忽略了对modalPresentationStyle的更改。
此类将忽略modalPresentationStyle设置,并且这些设置对工作表的演示没有任何影响。
https://developer.apple.com/documentation/storekit/skstoreproductviewcontroller
https://stackoverflow.com/questions/57704255
复制相似问题