我们需要在 Swift 3 中使用哪个 Pod 来实现 iOS 中的图表?
Which Pod we need to use in Swift 3 for implementing chart in iOS?
我需要在我的 application.We 中添加一个折线图才能使用 Cocoapods。我在 Podfile 中添加了:pod 'Charts' 用于在我的 iOS application.While 中实现 Chart 打开工作区 xcode 要求将项目转换为 swift 3. 但是之后它显示了很多错误(因为从 swift 2.3 到 3 的语言转换)。
这些是我遵循的步骤。
Added pod 'Charts' in Podfile, installed it then opened the workspace
Added the link binary Charts.framework in the Build phases of project target
Imported the Charts in ViewController
从 github 我得到了 swift 3 的解决方案
pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'
但在我的情况下,这也不起作用,我什至无法为我的视图创建 IBOutlet(在 viewcontroller 中用于显示图表)。
您可能会将此播客用于 swift 3.0
use_frameworks!
pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'
我需要在我的 application.We 中添加一个折线图才能使用 Cocoapods。我在 Podfile 中添加了:pod 'Charts' 用于在我的 iOS application.While 中实现 Chart 打开工作区 xcode 要求将项目转换为 swift 3. 但是之后它显示了很多错误(因为从 swift 2.3 到 3 的语言转换)。
这些是我遵循的步骤。
Added pod 'Charts' in Podfile, installed it then opened the workspace Added the link binary Charts.framework in the Build phases of project target Imported the Charts in ViewController
从 github 我得到了 swift 3 的解决方案 pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'
但在我的情况下,这也不起作用,我什至无法为我的视图创建 IBOutlet(在 viewcontroller 中用于显示图表)。
您可能会将此播客用于 swift 3.0
use_frameworks!
pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'