0

此函数调用中的第二个参数:

dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC)

导致编译器错误:

'UInt64' is not convertible to 'Int64'

斯威夫特参考

func dispatch_time(when: dispatch_time_t, delta: Int64) -> dispatch_time_t

var NSEC_PER_SEC: UInt64 { get } /* nanoseconds per second */
4

1 回答 1

0

请参阅:如何将 UInt64 转换为 Int64?谷歌搜索编译器错误时不会出现该问题:'UInt64' is not convertible to 'Int64'

于 2014-08-29T18:56:32.057 回答