iphone - 如何使用翻转动画显示 MapView 选项?

标签 iphone objective-c ios mkmapview

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

Like This

谢谢!!

最佳答案

将底层 View 呈现为模态 Controller 并使用过渡样式 - 部分 curl 。像这样:

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

更新:
在 iOS6 中你应该这样做:
SecondeViewController *nextView = [[SecondeViewController alloc] init];
nextView.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentViewController:nextView animated:YES completion:Nil];

关于iphone - 如何使用翻转动画显示 MapView 选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10544023/

相关文章:

iOS 11 : SSL error occurred and connection to server cannot be made

android - 带有链接的 <li> 在 iPhone 上显示较小的元素符号

iphone - 有没有办法通过 Objective-C 中的委托(delegate)发送对象

android - 打开谷歌地图应用程序,按坐标指示

ios - 在父 View Controller 中点击按钮时容器 View 丢失 textField 值

iphone - 从/到字符串保存和加载 UIImage

ios - 如何在 iOS 8 map 上同时显示当前位置和所有注释图钉

iphone - UIGraphicsPopContext() 的问题...?

iphone - NSCache崩溃的应用程序

objective-c - 在 ios 7 中的文本字段中提供 *hint* 作为 android 中的 edittext 字段