0
我使用的UITableView聊聊天收件箱視圖和我的導航堆棧的UITableView釋放崩潰就像與志願錯誤
(
"<VTDiscoverHome3ViewController: 0x7ff094758f00>",
"<VTInboxViewController: 0x7ff098de34d0>",
"<VTChatViewController: 0x7ff095827e00>",
"<VTDiscoverProfessionalDetailsViewController: 0x7ff095424a00>",
"<VTRequestScheduleViewController: 0x7ff095814c00>"
)
所以,當彈出從我收到在收件箱中查看崩潰說
頂視圖主視圖An instance 0x7ff094a33800 of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x608002e3f680> (
<NSKeyValueObservance 0x60800585c1d0: Observer: 0x7ff098f1b8d0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x60800585c140>
<NSKeyValueObservance 0x60800585c320: Observer: 0x7ff098f1b8d0, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x60800585c290>
<NSKeyValueObservance 0x60800585c410: Observer: 0x7ff098f1b8d0, Key path: frame, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x60800585c380>
<NSKeyValueObservance 0x60800585c500: Observer: 0x7ff098f1b8d0, Key path: contentInset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x60800585c470>
)'
我試圖消除tableview
觀察員和設置
self.tableView.delegate = nil;
self.tableView.dataSource = nil;
self.tableView = nil;
但仍然沒有運氣
我不明白爲什麼我會得到這個崩潰。
任何幫助將是非常明顯的。
謝謝。
你添加任何核心價值觀察員對上述視圖控制器的任何屬性? – 2017-06-13 10:40:24
都能跟得上我沒有。 –
你是如何移除'tableView'觀察者的 – 2017-06-13 11:13:07