特定の状況下で、UITableViewdidSelectRowAtIndexPath
が 2 回呼び出され、エラーが発生しますPushing the same view controller instance more than once is not supported
。
イベントのシーケンスは次のとおりです。
TableView::didSelectRowAtIndexPath.
TableView::viewWillDisappear.
PushedViewController::viewWillAppear.
TableView::didSelectRowAtIndexPath.
Error: Pushing the same view controller instance more than once is not supported'
注目に値する唯一のことは、UITableView が画像を非同期的にロードしているが、didSelectRowAtIndexPath
. また、UITableView でセルが選択されるたびに再読み込みする必要がないように、PushedViewController が再利用されます。
誰がこれを引き起こしているのか考えていますか? ありがとう。