1

如何通过底部动画翻转在 mapView 中显示选项?就像 iPhone 中的原始地图应用程序一样?像这样:

像这样

谢谢!!

4

2 回答 2

4

将底层视图呈现为模态控制器并使用过渡样式 - 部分卷曲。像这样:

controller.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:controller animated:YES];

更新: 在 iOS6 中你应该这样做:

SecondeViewController *nextView = [[SecondeViewController alloc] init];
nextView.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentViewController:nextView animated:YES completion:Nil];
于 2012-05-11T00:53:24.407 回答
0
UIViewAnimationTransition transition = UIViewAnimationTransitionCurlUp;
UIViewAnimationCurve curve = UIViewAnimationCurveEaseInOut;
[UIView beginAnimations:@"anim" context:NULL];
[UIView setAnimationCurve:curve];
[UIView setAnimationTransition:transition forView:[self view] cache:YES];
[UIView setAnimationDuration:1.0f];
[UIView commitAnimations];
于 2012-05-11T02:18:29.570 回答