我更改了代码以匹配Swift 3& xCode 8,但现在我得到了断点错误;我不明白为什么
snd_pcm_status()
断点来自
override func viewDidLoad() {
super.viewDidLoad()
tableView.dataSource = self
tableView.delegate = self
//when someone adds something new to database tell us here
FIRDatabase.database().reference().child("users").child(FIRAuth.auth()!.currentUser!.uid).child("snaps").observe(FIRDataEventType.childAdded, with: {(snapshot) in
print(snapshot)
let snap = Snap()
let snapshotDictionnary = snapshot.value as? NSDictionary
//This will get the data from the list of emails
snap.from = (snapshotDictionnary!["from"] as? String)!
snap.imageURL = (snapshotDictionnary!["imageURL"] as? String)!
snap.descript = (snapshotDictionnary!["description"] as? String)!
self.snaps.append(snap)
self.tableView.reloadData()
})
}
我没有意识到问题是关于侧面的蓝色箭头。如果其他人遇到此问题,只需点击蓝色箭头并将其拖离屏幕即可。