IPhone applicationsAboutThree20The method to add is the content to be introduced in this article, mainly to learnIphone applicationsInThree20For more information, see this article. Three20 is a collection of graphic interface classes for iPhone development, including image viewing, general tools, and local HTTP cache. Three20 is from the source code of Facebook's iPhone program.
Add Three20 to your program
Three20It is a pre-compiled static library. The simplest method is to use Xcode's dependency engineering features. The following is the method:
1. Copy the Clone command) three20 gitGitHub Directory: 'git clone git: // github.com/joehewitt/three1_git'. Ensure that it is stored in a common location so that Xcode can index and access it at every compilation.
2. Find "three1_xcodeproj" in "three20/src ". drag Three20.xcodeproj to the "Groups and Files" root directory of your project. in the displayed dialog box, remove the "Copy items" check box, select "Relative to Project" for "Reference Type", and click "Add ".
3. Now you need to link the Three20 library to your project. Click the added "three1_xcodeproj". In the "Details" table, you will see libthree1_a. Mark it with the check mark on the right of the file.
4. Now you need to set the 320 Library as the dependent library of your program so that Xcode will compile 320 together during compilation. Expand the "Targets" tab on the left and double-click the "project" file of your program. Under the "General" tab, you will see "Direct Dependencies" and click "+" to add the 320 database.
5. Now you need to add images and strings to your program and find"Three20. Bundle "in" three20/src "and drag it to your program. Select "Copy items" in the dialog box, and select "relative to project" for "reference type"
6. Now, you need to add the Core Animation framework to your project. Click the target program and add QuartzCore. framework in frameworks. This is not a translation, and the original method is too troublesome.
7. Finally, we need to find the header of the 320 library for your project. Open "Project Settings", find "Build", find "Header Search Paths", and double-click it. Add"Three20/Src "relative directory address.
8. In Project Settings, find "Other Linker Flags" and add "-ObjC" and "-all_load" in the "Linker" area ".
9. OK. Add # import "Three20/three1_h" in the place where the 320 library is used.
Summary:IPhone applicationsAboutThree20The content of the add method has been introduced. I hope this article will help you! AboutIphone applicationsFor details about the development, refer to the iphone application development channel.