We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
这些是文档;通过网络搜索,您经常可以找到其他花絮信息(http://cocoadev.com 是一个很好的资源,当然,SO 也是如此),但没有“更完整”版本的 Apple 文档。
对于这种特殊情况,搜索“排序选项”< /a> 显示 基础常量参考,其中包含
enum
排序选项。有趣的是,我刚刚注意到
-[NSArray enumerateObjectsWithOptions:usingBlock:]
确实解释了可用的选项,所以这绝对是一个疏忽。您应该发送文档错误报告Those are the docs; you can often find other tidbits of information doing a web search (http://cocoadev.com is a good resource, as is SO, of course), but there's no "more complete" version of the Apple documentation.
For this particular case, a search for "sort options" turns up the Foundation Constants Reference, which contains an
enum
of Sort Options.Interestingly, I just noticed that
-[NSArray enumerateObjectsWithOptions:usingBlock:]
does explain the available options, so this is definitely an oversight. You should send in a doc bug report是的,苹果文档就是苹果文档——业内最糟糕的文档之一。最值得注意的是,它们似乎是在不了解 HTML 链接概念的情况下构建的,因此应该直接链接的内容则不然。您经常最终不得不在网络上搜索一些详细信息,过了一段时间您就会发现许多秘密都隐藏在 基础数据类型 以及您在“自上而下”中永远找不到的其他此类文档搜索苹果酒吧“树”。
(例如,查看 Java pub,以及 Java pub ="http://doc.qt.nokia.com/4.7/" rel="nofollow">Qt 在这两种情况下,当您查看类的定义时,您可以轻松识别所有类。实现的字段/方法,包括只有在 Apple 文档中,您才需要手动挖掘超类和协议定义才能找到所有内容。)
Yep, the Apple docs are what the Apple docs are -- some of the worst in the industry. Most notably they seem to have been built without knowledge of the concept of HTML links, so stuff that should be directly linked isn't. You often end up having to do a web search for some details, and after a while you learn that a lot of secrets are hidden in the Foundation Data Types and other such documents that you'd never find on a "top down" search of the Apple pubs "tree".
(Eg, look at the Java pubs, and the pubs for Qt. In both cases, when you look at the definition for a class, you can easily identify all of the implemented fields/methods, including those of superclasses. Only in the Apple docs do you have to manually dig through the superclass and protocol definitions to find everything.)