iOS 5 で好きなようにOpenGL ES
カールする必要はないと思います。それ自体で実現できます。ここで述べたように私のコードを見ることができます。また、そのコードを修正して、これを試してくださいmapView
QuartzCore framework
- (void)mapCurl {
[UIView animateWithDuration:1.0
animations:^{
CATransition *animation = [CATransition animation];
[animation setDuration:0.7];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:@"default"]];
animation.fillMode = kCAFillModeForwards;
[animation setRemovedOnCompletion:NO];
// For curl and uncurl the animation here..
if (!_isCurled) {
animation.endProgress = 0.65;
animation.type = @"pageCurl";
[_locationMapView.layer addAnimation:animation forKey:@"pageCurlAnimation"];
// _backView is a view behind the mapView
[_locationMapView addSubview:_backView];
}else {
animation.startProgress = 0.35;
animation.type = @"pageUnCurl";
[_locationMapView.layer addAnimation:animation forKey:@"pageUnCurlAnimation"];
// _backView is a view behind the mapView
[_backView removeFromSuperview];
}
}
];
_isCurled = (!_isCurled);
}