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

て烟熏妆下的殇ゞ 提交于 2019-12-05 19:31:02

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.

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