“Unbalanced calls to begin/end appearance transitions” warning when push a view in a modal way in XCode 4 with Storyboard

前端 未结 4 1878
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 10:28

After some research on the web without success, I come here to ask you the question about my warning.

Actually, I have a view V1 with a navigation controller and I w

4条回答
  •  再見小時候
    2020-12-03 10:42

    The reasons for this are manifold and are very specific to the context and the programming. For example, what I was doing was

    1. initialising a sound file, playing it (asynchronously) for 1.4 seconds,
    2. making an image move across the screen using animation timed to last 1.4 seconds and,
    3. with a timer set to 1.4 seconds after step 2, pushing a viewcontroller.

    What i discovered is that if I DO NOT have the instructions for these 3 steps one after the other (if I mix them up), then I get the error "Unbalanced calls...". Also, if I time the push of the viewcontroller to less than 1.4 seconds, I get the message as well.

    So, check that the sequence and timing of your program instructions are correct.

提交回复
热议问题