使用这种结构:
let ref = FIRDatabase.database().reference()overrIDe func vIEwDIDLoad() { super.vIEwDIDLoad() ref.observeEventType(FIRDataEventType.Value,withBlock: { (snapshot) in let postDict = snapshot.value as! [String : AnyObject] print("\(postDict)") })}
跑完后我看到错误:
2016-05-19 10:04:22.264 123a[88652:13688922] The default app has not been configured yet.2016-05-19 10:04:22.276 123a[88652:13688922] *** Terminating app due to uncaught exception 'MissingDatabaseURL',reason: 'Failed to get FIRDatabase instance: FIRApp object has no databaseURL in its FirebaSEOptions object.'*** First throw call stack:
我阅读了文档,但无法解决此问题.
GoogleService-Info.pList我添加到项目中.
overrIDe init() { super.init() // Firebase Init FIRApp.configure()}总结
以上是内存溢出为你收集整理的xcode – 从新的Firebase中检索数据全部内容,希望文章能够帮你解决xcode – 从新的Firebase中检索数据所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)