在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
复制相似问题