Iphone 5与IOS 8 DISPATCH_TIME_FOREVER崩溃,因为它大于Int.max

时间:2015-05-12 18:35:52

标签: ios8 grand-central-dispatch

dispatch_group_wait(dispatchGroupHealth,DISPATCH_TIME_FOREVER)在iPhone 5上崩溃 浮点值无法转换为Int,因为它大于Int.max

任何想法如何解决?

1 个答案:

答案 0 :(得分:0)

答案是使用UInt64(UInt32.max),因为iPhone 5 32位不支持DISPATCH_TIME_FOREVER