草庐IT

CMTimeCompare

全部标签

ios - CMTimeCompare 如何工作?

CMTimeCompare是如何工作的?Apple似乎从他们的文档中遗漏了返回值。https://developer.apple.com/library/mac/#documentation/CoreMedia/Reference/CMTime/Reference/reference.html我假设如果时间相等,它会返回零并根据哪个更大返回正数或负数1? 最佳答案 来自CMTime.h:Returnsthenumericalrelationship(-1=lessthan,1=greaterthan,0=equal)oftwoCMT