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 风格的页面卷曲手势交互


- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01