私人资料库
本博客大部分技术文章,均从网络搜索得来,旨在收集整理技术资料,文章版权归属原作者,由此引起的任何版权问题,与本人无关。
摘要: 转自:http://blog.sina.com.cn/s/blog_6cc3d7570100lpi9.html在实际工作中有些程序不可避免的需要使用数学函数进行计算,比如地图程序的地理坐标到地图坐标的变换。Objective-C做为ANSI C的扩展,使用C标准库头文件<math.h>中定义的数学常量宏及数学函数来实现基本的数学计算操作,所以不必费神再在Cocoa Foundation中寻找相应的函数和类了。这里列出一些常用宏和数学函数,更详细的信息还是需要去查阅<math.h>头文件。数学常量:#define M_E2.718281828459045235360287 阅读全文
posted @ 2011-07-20 22:48 该显示名称已被其他用户使用 阅读(715) 评论(0) 推荐(1)
摘要: 转自:http://blog.sina.com.cn/s/blog_53e2ac4d0100qoke.htmlCABasicAnimation animationWithKeyPath TypesWhen using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath.This is a long string and is not easily listed in the CABasicAnimation, CAProp 阅读全文
posted @ 2011-07-20 10:57 该显示名称已被其他用户使用 阅读(407) 评论(0) 推荐(0)