RTL languages uipageviewcontroller animation

后端 未结 3 2111
孤街浪徒
孤街浪徒 2020-12-18 07:40

I know this question is typique and it was asked many times in the forum, but I still cannot solve my problem, so please if any body can help be that would be GREAT :)

3条回答
  •  臣服心动
    2020-12-18 08:02

    You should dive into core graphics and core animation.

    1. Make 2 layers (a previous/next and current)
    2. When doing a 'pangesture' (see the Event Handling Guide ) you need to see if it's a swipe left or swipe right (previous/next page)
    3. Then perform a 3D Rotation on the layer(s)

    here's a nice example about flipping pages

提交回复
热议问题