gpt4 book ai didi

ios - UIView.animate 无法在 testflight 中工作 - Xcode 8 Swift 3

转载 作者:行者123 更新时间:2023-11-30 12:30:52 26 4
gpt4 key购买 nike

我有一个像这样的 UIView 动画:

func animateStart() {
UIView.animate(withDuration: 3, animations: {
self.firstImg.image = UIImage(named:"image.JPG")
self.firstImg.alpha = 1
}, completion: { finished in
if finished {
self.animateSecond()
}
})
}

func animateSecond() {
UIView.animate(withDuration: 2, animations: {
self.firstLbl.text = "This..."
self.firstLbl.alpha = 1
self.firstLbl.alpha = 0
}, completion: { finished in
if finished {
self.animateThird()
}
})

}

它在模拟器中以及构建到本地设备时都能完美运行。然而,我今天早上将我的构建发布到 testflight,并且只有 UIView 的前 3 帧动画,然后是最后一帧动画。 (我一共有9个)。标签继续按预期进行动画处理。我知道他们昨天更新了 testflight...更新后有人遇到类似的情况吗?

最佳答案

这是 @rmaddy 的答案,但我认为它应该被批准为正确的答案,因为我遇到了类似的问题,清理我的设备向我展示了差异。

In your development environment, delete your app from your simulators and devices. Do a clean build and run the app again. Does it still work as expected or does it now work incorrectly like in Test Flight?

Always does a delete and clean build followed by a clean install and test before submitting an app to Apple. Things get left behind during development that might not exist when a user does a clean install

关于ios - UIView.animate 无法在 testflight 中工作 - Xcode 8 Swift 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43574548/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com