简体   繁体   中英

iOS: Is there any solution yet for Core Animation problems on 64-bit?

We recently converted our app to full 64-bit compatibility, and now CABasicAnimations across the entire app are failing on 64-bit devices (animations that have been working for years on all devices). A question was asked here , but received no response. What is the current knowledge surrounding this issue? I can't find much written about it.

I'm not sure if this answers your question, but it could be related.

UIView animations that use UIViewAnimationOptionBeginFromCurrentState no longer interrupt existing animations as of iOS 8. Cancelling animations now has to be done explicitly with removeAnimationForKey .

Maybe if you described what "failing" means in more detail and provided a short code snippet that demonstrates the erroneous behaviour, there may be different insight into a solution.

Just a shot in the dark: a common cause of problems when going from 32 to 64 bits is related to the size of data types such as floats, integers, longs , etc.

Speaking of animations, a likely culprit are floating point values. If you have used float s in your code, then maybe you are out of luck. Indeed, the framework expects CGFloat to represent floating point numbers, so there will be this implicit cast done by the compiler. Ooh the other hand, float have not changed their size, while CGFloat have (from 32 to 64 bits). This could explain the widespread problems you are having.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM