Bizarre unwanted animation occurring in iPhone app

你说的曾经没有我的故事 提交于 2019-12-05 07:54:26

It sounds like you're leaving UIView animations un-finished. If you begin an animation but never finish it, all UIView manipulations after that point will be animated, just like you describe. The odd part is I thought UIKit would terminate them for you (and log a message) if control passed back to the runloop with an open animation block. Either that no longer happens, or you're constantly starting new animation blocks.

You should look over your code for all instances of +[UIView beginAnimations:context:] and ensure that they're all balanced by a corresponding +[UIView commitAnimations].

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!