UIModalTransitionStylePartialCurl半页 [英] UIModalTransitionStylePartialCurl half page

查看:282
本文介绍了UIModalTransitionStylePartialCurl半页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过以下方式显示UIViewController:

I'm displaying an UIViewController by the following way:


MyViewController *myVc = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
[myVc setModalTransitionStyle:UIModalTransitionStylePartialCurl];
[self presentModalViewController:myVc animated:YES];

如果我正在绘制 MyViewController ' s视图转换仅影响半页(我想要的是什么)。

If I'm drawing the MyViewController's view the transition affect only half a page (What I do want).

在我的情况下,我正在绘制整个 MyViewController 的视图因此转换在整个视图中生效

In my case I'm drawing the entire MyViewController's view so the transition takes affect at the entire view

如果我只绘制了半个视图,则转换会对屏幕的一半产生影响但是我仍然有'死区'正在显示并且没有被绘制。

If I'm drawing only half a view the transition takes affect on half of the screen but I still have 'dead area' that is being shown and isn't drawn.

我的问题是过渡如何仅影响屏幕的一半(如图所示)但我仍然可以绘制整个视图,所以即使过渡仅显示屏幕的一半,所有显示的区域都将被绘制

My question is how can the transition take affect only for half of the screen (as in the picture) but I still be able to draw the entire view so even if the transition shows only half of the screen, all the shown area will be drawn

推荐答案

<这是什么问题?以使用可见区域的方式填充 modalView 中的内容。如果我没有错, modalPageCurl 效果没有选项来设置卷曲的范围(或它应该占用多少屏幕)。

What's the problem here? Populate content in the modalView in such a way that the visible area is utilized. If I am not wrong, the modalPageCurl effect has no option to set the extent of curl (or how much of the screen it should occupy).

所以我建议你跳过这种方法&专注于试图覆盖(或利用)尽可能多的屏幕......

So I suggest you skip this approach & focus on trying to cover (or utilize) as much screen is available...

这篇关于UIModalTransitionStylePartialCurl半页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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