0
我想上的UITextField显示的“1.0”的字符串仅仅是以下如何通过从火力 我的火力JSON阅读AppVersion关键的火力让孩子值与SWIFT 3.0
{
"AppVersion" : "1.0"
}
我SWIFT代码(SWIFT 3.0)
override func viewDidLoad() {
super.viewDidLoad()
ref = FIRDatabase.database().reference().child("AppVersion")
AppVersionLabel.text = ref.key
}
的字段中显示单词 “AppVersion”,而不是 “1.0”
见https://firebase.google.com/docs/database/ios/read-and-write#listen_for_value_events –