問題描述
很多人有興趣在 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模板網!