【问题标题】:CAAnimation: Animation disabled automatically when app goes in backgroundCAAnimation:当应用程序进入后台时自动禁用动画
【发布时间】:2011-12-28 13:14:08
【问题描述】:

在我的 iPhone 应用中,

我已将 CAAnimation 放入我的代码中...

当我的应用程序在某个按钮上进入后台并带有动画并且返回按钮动画时我看不到

为什么?

我已经在 appdidenter 后台添加了重新调用动画的方法...

【问题讨论】:

    标签: iphone objective-c xcode cocoa-touch caanimation


    【解决方案1】:

    应用程序的执行在进入后台时被暂停。 虽然看起来应用程序仍然处于活动状态,但现在不再是这样了,当应用程序移动到后台状态时,任何绘制到视图的内容都将停止。 有关详细信息,请参阅以下 ios 开发人员链接-http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/Introduction/Introduction.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-14
      • 2015-08-16
      • 1970-01-01
      • 2012-10-12
      • 2016-12-14
      • 1970-01-01
      • 1970-01-01
      • 2020-12-23
      相关资源
      最近更新 更多