Implementing iOS Maps style page curl gesture interactions(实现 iOS Maps 风格的页面卷曲手势交互)
问题描述
很多人有兴趣在 iOS 中实现页面卷曲模式转换,就像在原生地图应用中发现的那样 - 请参阅 这里,这里和这里 - 但是这个问题似乎没有得到完全回答.所以:
A bunch of people are interested in implementing the page curl modal transition in iOS like that found in the native Maps app - see here, here and here - however the question doesn't seem to have been fully answered. So:
是否可以像目前在 iOS 6 上的地图中那样在主视图下方显示页面卷曲模式?我希望通过用手指卷曲"顶视图来实现转场,给人与卷曲直接交互的外观,就像在相同版本的 iOS 中使用 iBooks 的情况一样.
Is it possible to display a page-curl modal beneath a main view as is currently the case in Maps on iOS 6? I wish to implement the segue via "curling" the top view back with a finger, giving the appearance of direct interaction with the curl, as is the case with iBooks in the same versions of iOS.
实现 segue 本身(如在部分卷曲过渡中)不是问题 - 添加手势交互(动态部分剥离)是.
Implementing the segue itself (as in a partial curl transition) is not the problem - adding the gesture interaction (with dynamic partial peeling) is.
推荐答案
这段代码可以解决问题:XBPageCurl
This piece of code will do the trick: XBPageCurl
这篇关于实现 iOS Maps 风格的页面卷曲手势交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:实现 iOS Maps 风格的页面卷曲手势交互


基础教程推荐
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01