摘要: Grand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。dispatch queue分成以下三种:1)运行在主线程的Main queue,通过dispatch_get_main_queue获取。 1 /*! 2 * @function dispatch_ge... 阅读全文
posted @ 2014-05-12 00:51 激情为梦想而生 阅读(120) 评论(0) 推荐(0) 编辑
摘要: iPhone SDK提供了三个类来管理位置信息:CLLocation CLLocationManager 和 CLLHeading(不常用)。除了使用GPS来获取当前的位置信息外,iPhone也可以基于WiFi基站和无线发射塔来获得位置信息。GPS的精度最高,可以精确到米级别,但是也最耗电。----... 阅读全文
posted @ 2014-05-12 00:43 激情为梦想而生 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Feeling a little blue?Here are ten fast and easy ways to smile.1. ExerciseWhen you exercise, your brain release a chemical called endorphins. This che... 阅读全文
posted @ 2014-05-12 00:35 激情为梦想而生 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 在Iphone上有两种读取图片数据的简单方法: UIImageJPEGRepresentation和UIImagePNGRepresentation.UIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数。而UIImagePNGRepresentation只需要图片... 阅读全文
posted @ 2014-05-12 00:34 激情为梦想而生 阅读(196) 评论(0) 推荐(0) 编辑