如何使页面像iOS 6上的Apple Maps一样卷曲? [英] how to get page to curl like in Apple Maps on iOS 6?

查看:89
本文介绍了如何使页面像iOS 6上的Apple Maps一样卷曲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使页面像在新的Apple地图中那样卷曲?我知道如何使它卷曲以查看另一页,但是我说的是地图右下角的卷曲.这是一张图片,如果您想了解我在说什么:

How would I get my page to curl up as it does in the new apple maps? I know how to make it curl up to see another page but I'm talking about the curl in the bottom right corner of the map. Here is a pic if you want to see what I'm talking about:

推荐答案

要显示此卷曲角,只需使用PNG图像(其中包含带有渐变和阴影的卷曲白色部分以及假定的下方视图的灰色背景部分) ,其余的PNG是透明的-类似于通过Google图片找到的例如 ).

To display this curly corner, simply use a PNG image (which contains the curly white part with its gradient and shadow + the gray background part of the supposed below view, the rest of the PNG being transparent -- similar to this one found via Google Image for example).

然后可以将此图像用作UIButtonbackgroundImage-或imageUIImageView,可以在其中添加UITapGestureRecognizer-然后将其添加为以下内容的子视图您最前面的视图,位于其右下角.然后只需配置此按钮(或UIImageViewUITapGestureRecognizer),使其在点击时触发卷曲动画.

You can then use this image as the backgroundImage of a UIButton -- or as the image an UIImageView to which you can add a UITapGestureRecognizer -- and then add it as a subview of your frontmost view, in its bottom right corner. Then simply configure this button (or the UIImageView's UITapGestureRecognizer) so it triggers the curl animation on tap.

这篇关于如何使页面像iOS 6上的Apple Maps一样卷曲?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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