简体   繁体   English

iPhone开发中使用的C方法参考

[英]Reference for the C methods used in iPhone development

Is there a good reference somewhere with all the C functions that can be used by default in iPhone development (I guess they lie in the Foundation framework)? iPhone开发中默认可以使用所有C函数的地方是否有很好的参考(我猜它们位于Foundation框架中)? I mean functions like: arc4random(), cos(), sinf(), hypot(), sqrt(), sqrtf() etc... 我的意思是这样的函数:arc4random(),cos(),sinf(),hypot(),sqrt(),sqrtf()等...

They are so many considering their variations too (sin(), sinf()) and googling every single time is ineffective. 他们太多地考虑到了它们的变化(sin(),sinf()),并且每次都进行谷歌搜索是无效的。

Thanks :) 谢谢 :)

XCode/Help/Documentation XCode /帮助/文档

Then look in the Core Library. 然后查看核心库。 You may need to subscribe to one or more documentation sets first. 您可能需要先预订一个或多个文档集。 Check that you search is not limited to Objective-C also. 检查您搜索的对象还不仅限于Objective-C。

If you're looking for all of the math functions, they can be found in the header file 如果要查找所有数学函数,可以在头文件中找到它们

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/math.h

For more generic functions, in addition to the documentation, I often find it helpful to right-(or Control-)click on a function in my code and choose "Jump to Definition". 对于更通用的功能,除了文档之外,我经常发现右键单击(或按住Control键)我的代码中的功能并选择“跳转到定义”也很有帮助。 This takes you to the related header, which might also have similar functions and constants. 这将带您到相关的标头,该标头也可能具有相似的函数和常量。

The Apple iPhone OS Man Pages doc is the handiest guide for this kind of thing. Apple iPhone OS手册页文档是此类事情的最便捷指南。

http://developer.apple.com/iphone/library/documentation/System/Conceptual/ManPages_iPhoneOS/ http://developer.apple.com/iphone/library/documentation/System/Conceptual/ManPages_iPhoneOS/

Unfortunately being HeaderDoc driven, there's no PDF version. 遗憾的是,没有HeaderDoc驱动,没有PDF版本。 I thought at one point Apple indexed these symbols in the Xcode docset API indexes, but they don't seem to be there now. 我以为Apple曾经在Xcode docset API索引中为这些符号建立索引,但现在似乎不存在了。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM