What do the different symbols in the API section of the XCode Documentation mean?

吃可爱长大的小学妹 提交于 2019-12-22 00:27:55

问题


Looking at the API section on the left side of the XCode Documentation, I've always wondered what the symbols mean?

For instance, there's a "K" in a green square, a "T" in an orange square, an "M" in a blue square, etc.

Is there a key for these?

Thanks!

Rashiki


回答1:


  • C: Class, like NSString
  • M: Method, like -initWithString:
  • : Define, like nil

  • f: Function, like CFStringAppend()
  • T: Typedef, usually enums like NSStringEncoding
  • K: Constants, usually a member of an enum like NSUTF8StringEncoding
  • G: Global instances, usually strings like NSDirectoryFileType



回答2:


I'm going to expand the list for XCode circa late 2011:

C: Class
M: Method
#: Define
f: Function
T: Typedef
K: Constants
G: Global instance
V: Keys for a dictionary and KVO/KVC
E: Enumeration
P: Property
(books,papers): Library
(a book): Category or conceptual document
(XCode icon): Sample code project
(sheet of paper): Document page or section
?: Help article



来源:https://stackoverflow.com/questions/1856731/what-do-the-different-symbols-in-the-api-section-of-the-xcode-documentation-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!