如何影响部分页面卷曲所呈现的模态视图的大小? [英] How do I influence the size of a modal view presented with a partial page curl?

查看:119
本文介绍了如何影响部分页面卷曲所呈现的模态视图的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为应用程序中的视图提供一些额外的数据,并且我希望使用部分页面卷曲来实现它,就像Google Maps应用程序使用部分页面卷曲进行设置一样。

I need to have some additional data presented for a view in an application, and I'd like to implement it using a partial page curl in the same way that the Google Maps application uses a partial page curl for its settings.

我遇到的问题是所呈现的视图占据了整个屏幕:

The problem I've got is that the presented view takes up the entire screen:

如何调整显示的视图大小?理想情况下,我希望它与谷歌地图应用程序一样占据右下角。

How can I resize the view that's presented? Ideally, I'd like it to occupy the bottom right-hand corner the same way the Google Maps application does.

推荐答案

我我已经测试了这一点,似乎以下陈述是正确的:

I've tested this a good bit, and it appears that the following statements are true:


  1. UIModalTransitionStylePartialCurl的MINIMUM卷曲约为页面。

  2. 没有(我能找到)会阻止这个MINIMUM。

  3. 你可以影响卷曲的数量(在一半之间)页面和整页)通过将您的内容放置在UIViewController中显示。

所以,在第二张图片中你已经证明,对于我来说,部分卷曲大约在一半上升是完全合理的。它还解释了为什么您的初始图像会以它的方式显示。

So, in the second image you've shown, it makes perfect sense to me that the partial curl goes up about halfway. It also explains why your initial image appears the way it does.

此外,如果您查看Google地图,他们似乎正在使用某种专有/私有API得到他们的部分卷曲。或者也许是因为他们使用的是大小不足的UIViewController。无论如何,我希望这可以帮助您更接近目标。

Also, if you look at Google Maps, they appear to be using some sort of proprietary/private API to get their partial curl. Or maybe it's because they're using a down-sized UIViewController. In any case, I hope this helps you get closer to your goal.

这篇关于如何影响部分页面卷曲所呈现的模态视图的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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