很多人有兴趣在 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 风格的页面卷曲手势交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!