Three20, a well-known three20, must have been heard of. Many apps are developed with it. It is very convenient to develop the UI and has powerful functions. You don't have to go into the boring ios sdk with it. Today, we will introduce how to configure the environment in xcode4 to support three20 development.
1. First, we need to download the source code. Web site in: https://github.com/facebook/three20 decompress put in our project directory.
2. Drag three‑xcodeproj under src/three20 in the decompressed directory to your project. In the displayed dialog box, do not select "Copy items into destination group's folder" in the destination column, select your project target in the addto targets column, not the unit
Test target, and then click Finish.
3. Expand three20 In the project. You will find a group called dependencies. Expand it. There are six dependent projects, select them, and drag them to your project.
4. Drag the three20.bundle under the src directory to your project.
5. Add the required static library. For example, the red part is added:
6. Add the required target dependency. For example:
7. Add quartz. Framework
8. On the project configuration page, add header search paths in build
$(Built_products_dir)/../three20 ""
$(Built_products_dir)/.../../three20 ""
$ (Configuration_build_dir)/.../../three20"
For example:
9. In other
Add-objc-all_load to linker flags.
10. Then introduce the header file # import in the file that requires three20.
"Three20/three1_h" can be used.
Another method is to use the script. There is a script directory under the src directory, open terminal to enter the script directory, and then run the command:
python ttmodule.py -p path/to/your/project/yourproject.xcodeproj Three20 --xcode-version=4
-P is followed by the absolute path of your project. Of course, it is also the relative path of the current script.
In this way, various configurations in the first method are automatically completed.
Here are some three20 tutorials. The example directory also contains many demo projects.
Three20
Stylesheets iPhone tutorial
Three20
Custom cells iPhone tutorial
Three20
Table item tutorial
Http://www.codeios.com/thread-598-1-1.html
Http://iosguy.com/2010/10/19/tthree20-a-brief-ttlauncherview-tutorial/
Http://three20.pypt.lt/startHttp://three20.pypt.lt/starthttp://three20.pypt.lt/start