using Static library in iOS

1. 创建静态库

 

 

2. 在静态类中编写代码,然后关闭工程

3. 开发需要使用这个静态类的App工程

4. 将静态工程的.xcodeproj 文件拖到App工程

5. XCode=> Project Editor, 选中App工程=>Build Phase =>Link Binary with Libraries, 按加号,选中刚才加进来的静态库。

6. 切换到:Build Settings tab=>Other Linker Flags=>按加号添加-ObjC, 如果有就不要加

posted @ 2013-03-16 22:36  AlexHHC  阅读(144)  评论(0编辑  收藏  举报