原文地址:http://www.cnblogs.com/chen1987lei/archive/2010/03/10/1682796.html
Three20是一个编译的静态类库,在Xcode中的项目实用此类库也非常方便,以下是一些基础步骤:
1,从Three20 Git上获
取
最新文
件
,在终端命
令
输入:git clone
git://github.com/joehewitt/three20.git,必须确保此项目文件必须有一个固定的存放路
径
,因为你的项目如果实用此类库,在XCode中需要引用此项目(说明:Git是一种版本控制器,也就类似于源代
码
管理的东西了,如果还没安装,请到下面网址下
载
:http://git-scm.com/download
,并进行安装)
2,经过一些时间下载数据后打开“Three20.xcode
proj”,
一般项目想在的默认路径会在”/computerName/Document/three20″中的”src”文件夹中。
把”Three20.xcodeproj”拖入到你的项目中的”Groups and
Files”中的”Framworks”类目中。出现对话框后,取消选择”Copy item”,在“Reference Type”的选项中选中”
Relative To Project” ,然后点击”Add”
3,现在你需要在你的项目中关联Three20的静态类库。点击刚才添
加的”Three20.xcodeproj”,在右侧”Details”里选中最后一个复选框
4,增加Three20作为
dependency,这样Xcode才能正确编译Three20:打開
Targets并双击你的target,在General标签下的的Direct Dependencies按“+”后选择Three20,最后按下
Add Target
5,在src中找到Three20.bundle并拖入项目,在跳出的对话框中的选中 Create Folder
References,取消选择Copy items,Reference Type中选择 Relative to Project
6,
加入 Core QuartzCore.framework
7,加入搜寻路径:
打开Project
Settings并切换到Build
在Search Paths分类找到Header Search Paths于你的项目相对
three20/src 的相对路径 (如
“http://www.cnblogs.com/../3rdLibrarys/three20/src”)
在Linker分类下找到
Other Linkder Flags新增“-ObjC”和”-all_load”
8,最后实用时只需加入#import
“Three20/Three20.h”就ok了
原文地
址
http://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/three20.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
“Three20.xcodeproj” file under “three20/src”. Drag Three20.xcodeproj and
drop it onto the root of 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
“Three20.xcodeproj” item that has just been added to the sidebar. Under
the “Details” table, you will see a single item: libThree20.a. Check the
checkbox on the far right of libThree20.a.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 “Three20.bundle” 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://github.com/joehewitt/three20.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
“Three20.xcodeproj” file under “three20/src”. Drag Three20.xcodeproj and
drop it onto the root of 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
“Three20.xcodeproj” item that has just been added to the sidebar. Under
the “Details” table, you will see a single item: libThree20.a. Check the
checkbox on the far right of libThree20.a.
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 “Three20.bundle” 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.
分享到:
相关推荐
Iphone开发系列源码——FaceBook基于Iphone的多个应用源码Iphone开发系列源码——FaceBook基于Iphone的多个应用源码Iphone开发系列源码——FaceBook基于Iphone的多个应用源码Iphone开发系列源码——FaceBook基于...
Three20 is an Objective-C library for iPhone developers
iPhone three20 开发源码,其中包含iPhone控件重写,对学习iPhone 开发有很大得帮助,推荐,支持。
iPhone开发框架 Three20 ,Three20 UI 是一个iPhone开发图形接口类的集合,包含图片查看,一般工具,HTTP本地缓...
axure iphone手机元件库原型库axure iphone手机元件库原型库axure iphone手机元件库原型库
关于这个叉子这个 fork 包含来自主 Three20 存储库的一些重大更改。 所有子项目都变成了一个简单的项目使用 CocoaPods ( ) 简化安装XML ... Three20 源自 Facebook iPhone 应用程序,它是有史以来下载次数最多的 iPhone
Three20使用图文教程,three20是一个强大的UI库,谁用谁知道!
包含大部分Axure+iPhone手机机型的元件库,手机外壳元件库
hree20这个与facebook亲戚的开源库是蜚声iPhone开发界,很多App都有它的影子,主要是其真得是功能强大。 那么如何将Three20库添加到自己的项目中应用呢?一种是Python命令方式添加,再有就是纯手动添加到Xcode的具体...
Axure组件库包含 Andriod and Iphone 最全组件库
Axure原型图:iOS12元件库iPhoneX高保真UI移动端RP原型图 ios12YuanJianKu_s8 字体文件 Mac字体安装.png windows字体安装.png fontawesome-webfont.ttf IOS12 Library And App Template 交互原型模板.rp iPhoneX And...
Three20 is an Objective-C library for iPhone developers.zip
Axure组件库 手绘组件库 Sketchy Axure Widgets.rplib Scoder Hand.ttf Android-Axure-Widgets Android.rplib iPhone-Axure-Widgets ipad.rplib iPhone-Bodies.rplib iPhone-Horizontal.rplib iPhone-UI.rplib Yahoo...
iPhone各种手机型号的Axure机身元件库,机型包含了:iPhone 4S、iPhone 5、iPhone 5S、iPhone 6、iPhone 6 Plus、iPad 2、iPad Aire、iPad Aire 2、iPad Mini、iPad Mini 3,送人资源,手留余香。
axure部件库---适用于iOS和iPhone场景下的各种部件要素,资源。选择添加部件库,选择部件库文件, 全部导入即可。
使用Axure做iOS的原型,这个库可以方便的创建iPhone上使用的元件。
100套元件库超全 部件库 部件库 格式 功能表单 脚本扩展 界面控件 手机及平板电脑 图标资源 信息架构组件 页面布局 桌面软件 Axure7元件库大合集 标签滑块.rplib 表格元素_Y!DSK.rplib 菜单和按钮_Y!DSK.rplib 操作...
此内容适合IPhone5、IPad3、IPhone4S、IPhone4及IPad2。Wap接入点主要针对手机应用,如WAP上网浏览WAP开头的网页,移动业务及服务,一些JAVA第三方软件应用等!...因此搜集各智能平台的Wap设置方法,方便大家正确设置。
iOS8和iPhone6部件库