在iPhone应用程序中发生不必要的奇思妙想动漫 [英] Bizarre unwanted animation occurring in iPhone app

查看:151
本文介绍了在iPhone应用程序中发生不必要的奇思妙想动漫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我讨厌张贴此,但我在我工作的一个iPhone应用程序不需要看动画。我在我的应用程序或任何其他应用程序之前从来没有见过这个。

I hate to post this but I am seeing unwanted animation in an iPhone app that I am working on. I have never seen this before in my apps or any other apps.

本程序是针对iOS 4.2和iPhone手机只。古怪是在一个iPhone4的甚至发生了。

This app is for iOS 4.2 and for iPhones only. The weirdness is happening even on an iPhone4.

例如:


  • 在有问题的应用程序启动一个 UIAlertView中,它从顶部或左上方苍蝇。

  • When the application in question launches a UIAlertView, it "flies in from the top or top left."

在任何的UITableView 卷轴,新的(标准)单元格数据从单元格的左侧展开当第一次进入人们的视野,从而填充。

When any UITableView scrolls, the new (standard) cell data "expands in from the left of the cell" when first coming into view and thus populated.

的UITextField 有文字进去的时候,打字很慢,你可以看到光标向右滑动在新的字母。如果在一个清除按钮的UITextField ,它从左侧滑动以的UITextField 首先进入

When a UITextField has text entered into it, the typing is slow and you can see the cursor slide to the right over the new letter. If there is a "clear" button in the UITextField, it slides from the left side to UITextField is first entered into.

UIPickerView 正在滚动,滚动到一个新的显示行从左上角被飞的新行数据。

When a UIPickerView is scrolling, scrolling to a newly displayed row is "flying" the new row data in from the top left.

整体行为就像是旧旧如旧的Apple II +基础在那里你可以设置速度= 20和慢下来的电脑

The overall behavior is like to old old old Apple II+ basic where you could set "speed=20" and "slow" the computer down.

我所知道的:
这是发生在多个手机(4和3GS)。它不会在我的其他应用程序发生。它不会在一般的其他应用程序发生。这似乎是整个应用程序一致。这是一个不小的项目,所以我不能肯定究竟什么时候开始,但它并没有与这种行为开始。没有与上述内容相关联的动画。这个问题似乎会影响应用程序的一切。

What I know: This is happening on multiple phones (4 and 3Gs). It does not happen in my other apps. It does not happen in other apps in general. It seems to be consistent across the entire app. This is not a small project so I am not certain exactly when it started, but it did not begin with this behavior. There is no animation associated with the mentioned items. The problem seems to be affecting everything in the application.

甚至有一个自由站立code基的应用的一个例子,即当集成到这个prpoblem应用程序,显示同样的问题。

There is even an example of a free standing code base app, that when integrated into this prpoblem app, displays the same problems.

有没有人见过这样的行为?我不是唯一的开发人员,所以有没有其他一些可能的设置有人可以设置原因造成的?

Has anyone seen such behavior before? I am not the sole developer so is there some possible setting someone else could set that causes this?

推荐答案

这听起来像你要离开的UIView动画未完成。如果你开始一个动画,但从未完成它,这一点毕竟UIView的操作将动画,就像你描述。奇怪的是我认为的UIKit将终止他们为你(和日志消息),如果控制传递回runloop以开放的动画块。要么不再发生,或者你不断地开始新的动画块。

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.

您应该看看在你的code为 +的UIView beginAnimations:背景:]的所有实例,并确保他们都通过相应的<$平衡C $ C> +的UIView commitAnimations] 。

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].

这篇关于在iPhone应用程序中发生不必要的奇思妙想动漫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆