問(wèn)題描述
很多人有興趣在 iOS 中實(shí)現(xiàn)頁(yè)面卷曲模式轉(zhuǎn)換,就像在原生地圖應(yīng)用中發(fā)現(xiàn)的那樣 - 請(qǐng)參閱 這里,這里和這里 - 但是這個(gè)問(wèn)題似乎沒(méi)有得到完全回答.所以:
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 上的地圖中那樣在主視圖下方顯示頁(yè)面卷曲模式?我希望通過(guò)用手指卷曲"頂視圖來(lái)實(shí)現(xiàn)轉(zhuǎn)場(chǎng),給人與卷曲直接交互的外觀,就像在相同版本的 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.
實(shí)現(xiàn) segue 本身(如在部分卷曲過(guò)渡中)不是問(wèn)題 - 添加手勢(shì)交互(動(dòng)態(tài)部分剝離)是.
Implementing the segue itself (as in a partial curl transition) is not the problem - adding the gesture interaction (with dynamic partial peeling) is.
推薦答案
這段代碼可以解決問(wèn)題:XBPageCurl
This piece of code will do the trick: XBPageCurl
這篇關(guān)于實(shí)現(xiàn) iOS Maps 風(fēng)格的頁(yè)面卷曲手勢(shì)交互的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!