这是一个快速的一个我想FIRDataBaseReference不被认可
我想在我的应用程序使用的数据库火力地堡和我做的是安装为一体的教程说。在我的AppDelegate,我已经把需要的代码:
import UIKit
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FirebaseApp.configure()
return true
}
在视图控制器我要使用的数据库,我试图声明FIRDatabaseReference
var ref:FIRDatabaseReference!
但后来我收到此消息:
Use of undeclared type 'FIRDatabasereference'
我该怎么办?我已经导入火力地堡在这个特定视图 - 控制太