myprecious

2012年7月12日 #

[转]深入浅出 Cocoa 多线程编程之 block 与 dispatch quene

摘要: 转自:http://www.cppblog.com/kesalin/archive/2011/08/26/dispatch_queue_block.htmlblock 是 Apple 在 GCC 4.2 中扩充的新语法特性,其目的是支持多核并行编程。我们可以将 dispatch_queue 与 block 结合起来使用,方便进行多线程编程。本文源代码下载:点击下载1,实验工程准备在 XCode 4.0 中,我们建立一个 Mac OS X Application 类型的 Command Line Tool,在 Type 里面我们选择 Foundation 就好,工程名字暂且为 StudyBloc 阅读全文

posted @ 2012-07-12 17:18 myprecious 阅读(156) 评论(0) 推荐(0) 编辑

[转] JsonKit

摘要: http://www.14oranges.com/2011/08/how-to-use-jsonkit-for-ios-and-the-rotten-tomatoes-api/优点, 1 只有2个文件 2 使用简单 //Then import JSONKit.h” in your .m files where ever you need to parse a JSON response import "JSONKit.h" //Whenever you have JSON data that you need to parse (more on how to get som 阅读全文

posted @ 2012-07-12 09:29 myprecious 阅读(177) 评论(0) 推荐(0) 编辑

导航