Three20 is a compiled static class library, which is very convenient for projects in xcode. The following are some basic steps:
1. From three20 gitObtainLatestFileIn the terminalCommandInput: git clone git: // github.com/joehewitt/three‑git,ensure that the project file is stored in a fixed directory.PathBecause if your project is useful for such libraries, You need to reference this project in xcode (Note: git is a version controller, which is similar to the sourceCodeManagement, if not installed, please go to the following URLDownload: Http://git-scm.com/download and installation)
2. After some time to download the data, open "three20.XcodeThe default path of a project is in the SRC folder of "/computername/document/three20. Drag three20.xcodeproj to the "framworks" category in "groups and files" in your project. After the dialog box appears, deselect "copy item", select "relative to Project" in the "reference type" option, and click "add"
3. Now you need to associate three20 static class libraries in your project. Click the added "threepolicxcodeproj" and select the last check box in "details" on the right.
4. Add three20 as the dependency so that xcode can correctly compile three20: open targets and double-click your target. Press "+" on the direct dependencies tab under the General tab and select three20, finally, press add target.
5. Find three20.bundle in SRC and drag it into the project. In the displayed dialog box, select create folder references, deselect copy items, and select relative to project in reference type.
6. Add core zzcore. Framework
7. Add the search path:
Open Project Settings and switch to build
In the search paths category, find the relative path of the header search paths to your project relative to three20/src (for example, "http://www.cnblogs.com/./3rdlibrarys/three20/src ")
Under the linker category, find other linkder flags and add "-objc" and "-all_load"
8. In the end, you only need to add # import "three20/three1_h ".
OriginalAddressHttp://github.com/joehewitt/three20
Three20 is compiled as a static library, and the easiest way to add it to your project is to use xcode's "dependent project" facilities. here is how: Clone the three20 git Repository: git clone git: // github.com/joehewitt/three1_git. make sure you store the repository in a permanent place because xcode will need to reference the files every time you compile your project. locate the "threepolicxcodeproj" file under "three20/src ". drag threeappsxcodeproj and drop it onto the root of the your xcode project's "groups and files" sidebar. A dialog will appear-make sure "copy items" is unchecked and "reference type" is "relative to project" before clicking "Add ". now you need to link the three20 static library to your project. click the "threeappsxcodeproj" item that has just been added to the sidebar. under the "details" table, you will see a single item: libthreeparts. check the checkbox on the far right of libthreequota. now you need to add three20 as a dependency of your project, so xcode compiles it whenever you compile your project. expand the "targets" section of the sidebar and double-click your application's target. under the "General" tab you will see a "direct dependencies" section. click the "+" button, select "three20", and click "Add target ". now you need to add the bundle of images and strings to your app. locate "threebundle" under "three20/src" and drag and drop it into your project. A dialog will appear-make sure "create folder references" is selected, "copy items" is unchecked, and "reference type" is "relative to project" before clicking "Add ". now you need to add the core animation framework to your project. right click on the "Frameworks" group in your project (or equivalent) and select Add> existing frameworks. then locate quartzcore. framework and add it to the project. finally, we need to tell your project where to find the three20 headers. open your "Project Settings" and go to the "build" tab. look for "header search paths" and double-click it. add the relative path from your project's directory to the "three20/src" directory. while you are in Project Settings, go to "other linker flags" under the "linker" section, and add "-objc" and "-all_load" to the list of flags. you're ready to go. just # import "three20/three20.h" anywhere you want to use three20 classes in your project. three20 is compiled as a static library, and the easiest way to add it to your project is to use xcode's "dependent project" facilities. here is how:
Clone the three20 git Repository: git clone git: // container. Make sure you store the repository in a permanent place because xcode will need to reference the files every time you compile your project.
Locate the "threepolicxcodeproj" file under "three20/src ". drag threeappsxcodeproj and drop it onto the root of the your xcode project's "groups and files" sidebar. A dialog will appear-make sure "copy items" is unchecked and "reference type" is "relative to project" before clicking "Add ".
Now you need to link the three20 static library to your project. click the "threeappsxcodeproj" item that has just been added to the sidebar. under the "details" table, you will see a single item: libthreeparts. check the checkbox on the far right of libthreequota.
Now you need to add three20 as a dependency of your project, so xcode compiles it whenever you compile your project. expand the "targets" section of the sidebar and double-click your application's target. under the "General" tab you will see a "direct dependencies" section. click the "+" button, select "three20", and click "Add target ".
Now you need to add the bundle of images and strings to your app. locate "threebundle" under "three20/src" and drag and drop it into your project. A dialog will appear-make sure "create folder references" is selected, "copy items" is unchecked, and "reference type" is "relative to project" before clicking "Add ".
Now you need to add the core animation framework to your project. right click on the "Frameworks" group in your project (or equivalent) and select Add> existing frameworks. then locate quartzcore. framework and add it to the project.
Finally, we need to tell your project where to find the three20 headers. open your "Project Settings" and go to the "build" tab. look for "header search paths" and double-click it. add the relative path from your project's directory to the "three20/src" directory.
While you are in Project Settings, go to "other linker flags" under the "linker" section, and add "-objc" and "-all_load" to the list of flags.
You're ready to go. Just # import "three20/three1_h" anywhere you want to use three20 classes in your project.