UIView.animate 在测试飞行中不工作 - Xcode 8 Swift 3
UIView.animate not working in testflight - Xcode 8 Swift 3
我有一个像这样的 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个)。 Label 继续按预期进行动画处理。我知道他们昨天更新了 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
我有一个像这样的 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个)。 Label 继续按预期进行动画处理。我知道他们昨天更新了 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