ios - UIViewController modal弹出另一个UIViewController 如何做到不全屏覆盖

查看:199
本文介绍了ios - UIViewController modal弹出另一个UIViewController 如何做到不全屏覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

如题,UIViewController modal弹出另一个UIViewController 如何做到不全屏覆盖

希望新的UIViewController只遮盖屏幕的一部分

解决方案

VC.modalPresentationStyle = UIModalPresentationCustom;

这篇关于ios - UIViewController modal弹出另一个UIViewController 如何做到不全屏覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆