UIPageViewController transition 'Unbalanced calls to begin/end appearance transitions for '

前端 未结 10 1497
一生所求
一生所求 2021-02-01 20:10

When I navigate through UIPageViewController faster than its transition animation I am getting \'Unbalanced calls to begin/end appearance transitions for <

10条回答
  •  粉色の甜心
    2021-02-01 21:12

    Make use of your UIPageViewControllerDelegate methods and set up guards to prevent creating new page views when excessive page turns are detected.

    1. You can disable gesture recognizers
    2. Set "userInteraction" to disabled on the UIView
    3. maintain a flag on the UIPageViewController to ignore further input when there is an animation occuring. (warning about this option.. ios5 and ios6 have different ways of determining when the animation started..)

提交回复
热议问题