SalvoMaltese
SalvoMaltese

Reputation: 11

iPhone rolling page (maps application style)

How can I implement a "rolling page" effect like the one in iPhone maps application?

(The effect when the user tap the lower right button in the page here: http://artbeatme.files.wordpress.com/2009/05/bixi_map_1.png)

Upvotes: 1

Views: 583

Answers (2)

kubi
kubi

Reputation: 49364

If you're trying to flip to another view, you can use

[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self cache:YES];

Upvotes: 1

Chunky Chunk
Chunky Chunk

Reputation: 17237

it's an undocumented animation transition. they're not safe to use as apple can change them at any time and/or they will reject your app for using private methods.

read Page 67 from Erica Sadun's iPhone Developer's Cookbook: "Undocumented Animation Types" for more details. you can also download her sample code from her site. what you are looking for is "07c - MapCurl" from "C02 - Views.zip".

Upvotes: 0

Related Questions