views:

33

answers:

1

Hi,

I need a corner like in the Maps app.

alt text

I tried this code but nothing happens:

- (IBAction) performCurl {
// Curl the image up or down
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
notCurled = !notCurled;
[[topView layer] addAnimation:animation forKey:@"pageFlipAnimation"];

}

This my test-project: http://isolute.de/downloads/cornertest2.zip

A: 

See the answer to another question for one solution.

Note however that this answer uses [animation setRemovedOnCompletion: NO]. According to a forum post, apps have been rejected for using this undocumented API method.

Also, the mapCurl animation type is undocumented, and apps have been rejected for using it as well.

GregInYEG