如何在新 iPhone 上进行漂亮的转场
How to perform good looking segue on new iPhones
我正在寻找执行美观转场的最佳方式。
我的主要目标是避免屏幕顶部出现空隙并填满整个屏幕(在 iPhone 11 或 XR 等设备上)。
Here you can see what I mean(我使用了常见的现在模态转场)
您在应用中使用什么解决方案?
modalPresentationStyle
需要在正在展示的ViewController
上设置
vc.modalPresentationStyle = .fullScreen
从 storyboard
你可以这样做
我正在寻找执行美观转场的最佳方式。
我的主要目标是避免屏幕顶部出现空隙并填满整个屏幕(在 iPhone 11 或 XR 等设备上)。
Here you can see what I mean(我使用了常见的现在模态转场)
您在应用中使用什么解决方案?
modalPresentationStyle
需要在正在展示的ViewController
上设置
vc.modalPresentationStyle = .fullScreen
从 storyboard
你可以这样做