1.安装
1). Ruby
ruby -v 查看版本
2). Ruby源 , 注意,结尾的 / 不可少
gem sources -l https://rubygems.org/
gem sources –remove
gen sources –a https://ruby.taobao.org/
3). 安装Cocoapods
sudo gem install cocoapods
2.使用
在项目目录下,建立文件 Podfile
添加
platform :ios, ‘7.0’
pod ‘MBProgressHUD’, ‘~> 0.8’
在项目目录下 pod install
之后打开项目由.Xodeproj 改为打开 .xcworkspace
- 查找
pd search UI