[11] 在Playground 中 使用 CocoaPods

2017-12-04  本文已影响90人  coderzcj
  1. 创建Xcode 项目
  2. 创建Podfile
  3. 执行pod install
  4. 创建 Playground
  5. Xcode Workspace 添加 Playground
  6. Playground 导入 第三方库
  7. 异步执行添加以下代码:
import PlaygroundSupport

PlaygroundPage.current.needsIndefiniteExecution = true

// 异步执行完成添加
PlaygroundPage.current.finishExecution()
上一篇 下一篇

猜你喜欢

热点阅读