ios – CMTimeCompare如何工作?

栏目: IOS · 发布时间: 7年前

内容简介:CMTimeCompare如何工作? Apple似乎已经从他们的文档中遗漏了返回值.我假设如果时间相等则返回零并返回正或负1,基于哪个更大?

CMTimeCompare如何工作? Apple似乎已经从他们的文档中遗漏了返回值.

https://developer.apple.com/library/mac/#documentation/CoreMedia/Reference/CMTime/Reference/reference.html

我假设如果时间相等则返回零并返回正或负1,基于哪个更大?

来自CMTime.h:

Returns the numerical relationship (-1 = less than, 1 = greater than,  0 = equal) of two CMTimes.
-1 is returned if time1 is less than time2. 0 is returned if they are equal. 1 is returned if time1 is greater than time2.

编辑:

请注意:

Invalid CMTimes are considered to be equal to other invalid CMTimes,  and greater than  any other CMTime. Positive infinity is considered to be less than any invalid CMTime,  equal to itself, and greater than any other CMTime. An indefinite CMTime is considered  to be less than any invalid CMTime, less than positive infinity, equal to itself,  and greater than any other CMTime. Negative infinity is considered to be equal to itself,  and less than any other CMTime.

翻译自:https://stackoverflow.com/questions/9632318/how-does-cmtimecompare-work


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

支付战争

支付战争

埃里克•杰克逊 / 徐彬、王晓、清华大学五道口金融学院未央研究 审译 / 中信出版社 / 2015-5-19 / 49.00

这是一个野心勃勃的创业计划,在线支付鼻祖PayPal试图创造一个“统治世界”的金融操作系统,并在全球成功推广一款颠覆式的互联网产品。 《支付战争》的作者是“PayPal黑帮”成员之一,他真实还原了这个伟大产品是如何诞生的,以及在后来的发展壮大之路上,如何应对融资紧张、突破增长瓶颈,在竞争者凶猛围剿与平台商霸王条款的夹击下,逆境求生,改变业务模式,最终完成IPO,并成功出售给竞争对手eBay的......一起来看看 《支付战争》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具