做的實現代碼如下功能我「出口」的價值觀,我有以下功能:如何在迅速3
public func tableView(_ tableView: UITableView, didSelectRowAt
indexPath: IndexPath)
{
let currentcell = telefonbog[indexPath.row]
ref = FIRDatabase.database().reference()
ref?.child("medarbejder").child(currentcell).observeSingleEvent(of:
.value, with: { (snapshot) in
let value = snapshot.value as? NSDictionary
let Mail = (value?["Mail"] as? String)!
let Mobil = (value?["Mobil"] as? String)!
// self.test.text = Mail
self.performSegue(withIdentifier: "kontakt", sender: self)
})
}
我看到它的琴絃郵件和美孚沒有「出口」出這個功能的。 我的問題是我需要在下一個窗口中使用這兩個字符串。但他們是空的?
正確的,但不能得到它工作。 我現在已經試過了,知道它可能是非常基本的,但希望有人能幫助我。 試圖從函數直接填充另一個屏幕,但得到一個失敗 試圖返回,但不會工作。 現在卡住了 –
也嘗試使類var的Mail_和Mobil_,並仍然工作裏面的功能,但他們沒有得到更新外功能 –