摘要: 参考:http://www.cnblogs.com/lovecode/archive/2012/02/11/2347072.htmlhttp://tangchuanyao.com/20120213451/ 阅读全文
posted @ 2012-09-04 05:07 冷愤僧 阅读(1684) 评论(0) 推荐(0) 编辑
摘要: 1.创建静态库打开XCode新建一个项目,选择Library下的“Cocoa Touch Static Library”,在Classes文件夹上点右键选择“New File…”,然后在“Cocoa Touch Class”下选择“Objective-C class”,这样就可以创建Objective-C风格的源文件和头文件。同样,也可以创建C或者C++风格的代码,在Classes文件夹上点右键,选择“New File…”,这次选择Mac OS X下的“C and C++”,就行。然后在文件里编写具体的调用代码。最后进行编译,就会产生一个以.a为结尾的文件,就是我们需要的静态库。同时我们也需要 阅读全文
posted @ 2012-09-04 04:57 冷愤僧 阅读(2566) 评论(0) 推荐(0) 编辑
摘要: 【转自:http://www.cocoachina.com/macdev/cocoa/2010/0120/347.html】 对于target,Apple的官方解释是这样的:“ Targets that define the products to build. A target organizes the files and instructions needed to build a product into a sequence of build actions that can be taken.” 简单的理解的话, 可以认为一个target对应一个新的product(基于同一份代码. 阅读全文
posted @ 2012-09-04 00:07 冷愤僧 阅读(3702) 评论(0) 推荐(0) 编辑