//转场动画效果
@property(nonatomic,assign) UIModalTransitionStyle modalTransitionStyle API_AVAILABLE(ios(3.0));
//转场结束后页面样式
@property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle API_AVAILABLE(ios(3.2));
- modalPresentationStyle在IOS13中,默认值是automatic,所以导致转场后的界面无法全屏显示,我们只需要修改modalPresentationStyle为UIModalPresentationFullScreen即可恢复成以前的样子了。
- 在UINavigationController中同样也有modalPresentationStyle属性。
发现设置modelPresentTationStyle为UIModalPresentationOverFullScreen 遇到问题是大屏播放器不能转屏
改为 UIModalPresentationFullScreen 之后无异常
特把其他几种类型示例反馈一波。
UIModalPresentationFullScreen这个是默认的,充满全屏
UIModalPresentationPageSheet这个是像sheet的效果,但是是满屏的,如果横屏的话才会出效果,就是一个竖屏的大小周边都是不能点击的灰色
UIModalPresentationFormSheet类似Sheet的效果
UIModalPresentationCurrentContext跟父类出现的样式一样
UIModalPresentationCustom自定义样式