雅舍一人

咬我啊 ~

Repeat animation forever in Swift (HUGE_VALF)?

Set the repeatCount to Float.infinity. This compiles and works.

In all probability, HUGE_VALF was a legacy value in any case.

Still, it's a bit of a surprise that these numeric constant names are not seen by Swift. I did try importing in the bridging header but it didn't help.

参考 http://stackoverflow.com/a/24343909/3548428

Categories:  Swift 

« 饮食 »