赞
踩
首先你得安装cocoapods
首先我们拿上拉刷新来做个例子
首先搜索
imac:~ lx$ pod search mjref
出来
-> MJRefresh (3.1.0)
An easy way to use pull-to-refresh
pod 'MJRefresh', '~> 3.1.0'
- Homepage: https://github.com/CoderMJLee/MJRefresh
- Source: https://github.com/CoderMJLee/MJRefresh.git
- Versions: 3.1.0, 3.0.8, 3.0.7, 3.0.6, 3.0.5, 3.0.4, 3.0.3, 3.0.2, 3.0.1,
3.0.0, 2.5.0, 2.4.12, 2.4.11, 2.4.10, 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5,
2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.2, 2.3.1, 2.3.0, 2.2.1, 2.2.0, 2.1.0,
2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.1,
1.4.0, 1.3.8, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.0,
1.1.0, 1.0.5, 1.0.4, 1.0.3, 0.0.1 [master repo]
后将要导入的项目拖入:
imac:~ lx$ cd /Users/lx/Desktop/second副本\ 5
再之后
imac:second副本 5 lx$ ls
后
imac:second副本 5 lx$ pod init
执行完上一句后在要导入库的的文件里面出来个podfile文件
再将pod 'MJRefresh'这句拷贝到
target 'second' do
pod 'MJRefresh'
end
中间
最后再执行安装
imac:second副本 5 lx$ pod install --no-repo-update
到此安装完成
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。