[英]cellForRowAtIndexPath is called but without stacktrace
使用Swift 3,將func tableView(_ tableView: UITableView, cellForRowAt indexPath: @autoclosure @escaping IndexPath) -> UITableViewCell
UITableView的func tableView(_ tableView: UITableView, cellForRowAt indexPath: @autoclosure @escaping IndexPath) -> UITableViewCell
。 我想跟蹤誰在調用此函數。 據我所知,只有在需要顯示一個單元格時才會調用此方法。 但是,在stacktrace中override internal func tableView(_ tableView: UITableView, numberOfRowsInSection section: @autoclosure @escaping Int) -> Int
不調用override internal func tableView(_ tableView: UITableView, numberOfRowsInSection section: @autoclosure @escaping Int) -> Int
並且沒有stacktrace。 有人可以建議從哪里開始挖掘嗎? 謝謝!
正如@AndreasOetjen提到的,這是正常現象,因為從UIKit Framework類調用了方法get。 默認情況下,此框架中的調用堆棧是隱藏的,並且可以通過上述按鈕選擇加入。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.