From 1bfd5d13fb951a1dc6be82b9c1a630a58352c29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=B5=B7=E5=86=9B?= Date: Wed, 16 Oct 2019 16:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b42c0ab..1cbf78f 100644 --- a/README.md +++ b/README.md @@ -312,8 +312,35 @@ nn_lazygetter(UITableView, tableView, { ### CocoaPods -- `pod 'NNMacros'` -- `#import ` +安装最新版的 CocoaPods: + +```bash +$ gem install cocoapods +``` + +在 `podfile` 中添加: + +```ruby +pod 'NNMacros', '~> 2.0.0' +``` + +然后在终端执行: + +```bash +$ pod install +``` + +如安装失败,提示: + +```bash +[!] Unable to find a specification for `NNMacros` +``` + +尝试使用命令: + +```bash +pod install --repo-update +``` ## 使用中会遇到的问题及处理: