添加Three20到项目中
省去一切关于Three20的介绍
下载地址:https://github.com/facebook/three20
一.解压压缩包,将src目录copy到工程中.
二.命令行进入到src目录的script.
三.执行命令导入库
python ttmodule.py -p /your_project_path/project.xcodeproj Three20 --xcode-version=4
注: 1.--xcode-version:Set the xcode version you plan to open this project in. By default uses xcodebuild to determine your latest Xcode version.
2.如果遇到打死找不到头文件,悠Other Linker Flags为-all_load
- Double click the project in the left hand pane
- Click the "Build" at the top
- Find "Other Linker Flags" (tip: use Search box)
- Add the "-all_load" flag
Without it, the class categories were not loaded, and the additions to UIViewController did not register.
Hope this helps someone else
参考: http://ugrv5h1t.i.sohu.com/blog/view/200606083.htm http://groups.google.com/group/three20/browse_thread/thread/f07a0301283cdee5