对于我的iOS应用程序(iOS7内置),我需要在应用程序加载时显示用户的当前位置Google Maps iOS SDK.我正在使用.我正在关注
谷歌地图
但我无法理解.如果你走过这条路,请帮忙.
可可豆 1.1.1
Xcode 8.1 测试版
想要添加 Firebase/Core pod
播客文件
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'AddPodAdMob' do
source 'https://github.com/CocoaPods/Specs.git' do
use_frameworks!
pod 'Firebase/Core'
end
end
Run Code Online (Sandbox Code Playgroud)
如果不添加源,它就不会创建.xcworkspace文件。
现在在 pod install 命令之后显示这个。
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
Run Code Online (Sandbox Code Playgroud)
任何帮助请...
我正在使用图表绘制饼图.它工作正常,但我需要将选定的部分索引传递给下一个viewcontroller.我使用下面的代码,并阅读他们的图表3.0 的发行说明.我在Swift 3中工作.在以前的版本中,所选索引是从entry.dataSetIndex获得的.
通过这段代码,我总是得到0指数.请帮忙.
extension ViewController: ChartViewDelegate {
func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) {
print(highlight.dataSetIndex)
}
}
Run Code Online (Sandbox Code Playgroud)