HI at all, I have a little problem, I want to do a page with the effect of Maps like this
http://i.imgur.com/44Hq2.png
I have a page with view-uiwebview and some button.
My method are this:
the problem is that when the page was curled I want to see the view inside the uiwebview.
Uploaded with ImageShack.us
where is the mistake?
thank you!
kikko088
http://i.imgur.com/44Hq2.png
I have a page with view-uiwebview and some button.
My method are this:
Code:
- (IBAction)toggleView:(id)sender {
CATransition *animation = [CATransition animation];
[animation setDelegate:self.view];
[animation setDuration:0.7];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
animation.type = @"pageCurl";
animation.fillMode = kCAFillModeForwards;
animation.endProgress = 0.58;
[animation setRemovedOnCompletion:NO];
[self.vistaWeb.layer addAnimation:animation forKey:@"pageCurlAnimation"];
}
- (IBAction) torna {
CATransition *animation = [CATransition animation];
[animation setDelegate:self.view];
[animation setDuration:0.7];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
animation.type = @"pageCurl";
animation.fillMode = kCAFillModeBackwards;
animation.startProgress = 0.58;
animation.endProgress = 0;
[self.vistaWeb.layer addAnimation:animation forKey:@"pageCurlAnimation"];
}
the problem is that when the page was curled I want to see the view inside the uiwebview.
Uploaded with ImageShack.us
where is the mistake?
thank you!
kikko088