iOS 13 模态跳转出来的界面,不再像之前版本是全屏的了。通过读取modalPresentationStyle
属性来返回具体呈现样式。默认情况下,UIViewController
将UIModalPresentationAutomatic
设置为UIModalPresentationPageSheet
,但是系统提供的子类可以将UIModalPresentationAutomatic
设置为其他的呈现样式。从iOS 13.0开始,在iOS上默认为UIModalPresentationAutomatic
,在以前的版本上默认为UIModalPresentationFullScreen
。在所有其他平台上,默认为UIModalPresentationPageSheet
。
网友评论