Reputation: 2897
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:
Upvotes: 3
Views: 1880
Reputation: 32681
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.
Upvotes: 3