how to get page to curl like in Apple Maps on iOS 6?

陌路散爱 提交于 2019-12-07 16:55:48

问题


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:


回答1:


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).

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.



来源:https://stackoverflow.com/questions/13279764/how-to-get-page-to-curl-like-in-apple-maps-on-ios-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!