Open ATommyGirl opened 2 years ago
https://tommygirl.cn/2022/05/12/UIModalPresentationFullScreen_CAGradientLayer/
iOS 13 之前模态弹出一个页面默认是全屏展示,从 iOS 13 开始,如果不特意指定控制器的 modalPresentationStyle 属性,模态出的页面会是卡片式、非全屏,全屏的话需要指定: 1vc.modalPresentationStyle = UIModalPresentationFullScreen; 这一点相信很多年年做适配的同行早就知道了,所以这不是小咪要说的重点。 小咪
https://tommygirl.cn/2022/05/12/UIModalPresentationFullScreen_CAGradientLayer/
iOS 13 之前模态弹出一个页面默认是全屏展示,从 iOS 13 开始,如果不特意指定控制器的 modalPresentationStyle 属性,模态出的页面会是卡片式、非全屏,全屏的话需要指定: 1vc.modalPresentationStyle = UIModalPresentationFullScreen; 这一点相信很多年年做适配的同行早就知道了,所以这不是小咪要说的重点。 小咪