

ref.child("users").child("").observeSingleEvent(of: .value, with: { (snapshot)
in  
// Get user value  
let value = snapshot.value as? NSDicitionary <===  
**Use of undeclared type 'NSDicitionary'と表示されます**

[code]

        let username = value?["username"] as? string ?? ""
        print(username)
    
[/code]

エラーの解除方法を教えて戴けないでしょうか


CC BY-SA 3.0
2018-02-11T03:41:05.807
41640
2018-02-11T03:41:05.807
26811
question
swift
swift4 NSDicitionaryの記述でUse of undeclared type 'NSDicitionary'とエラー表示される