如何使用UIModalPresentationPageSheet调整modalViewController的大小 [英] How to resize a modalViewController with UIModalPresentationPageSheet

查看:1039
本文介绍了如何使用UIModalPresentationPageSheet调整modalViewController的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个模态视图控制器,我用UIModalPresentationPageSheet显示。问题是他的默认大小对我的内容来说太大了:所以我想调整大小是根据我的内容进行调整。

I've a modal view controller that I show with UIModalPresentationPageSheet. The problem is that his default size is too large for my content: so I want to resize is frame to adjust in according with my content.

有没有人知道方式/这样做的技巧?

Does anyone know a way/trick to do this ?

谢谢

推荐答案

你不能调整UIModalPresentationPageSheet的大小,因为它的大小不可修改。

You can't resize a UIModalPresentationPageSheet because its size is not modifable.

这篇关于如何使用UIModalPresentationPageSheet调整modalViewController的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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