如何使页面像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.