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:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
