在某些情況下,UITableView didSelectRowAtIndexPath
被調用兩次導致錯誤Pushing the same view controller instance more than once is not supported
。UITableView didSelectRowAtIndexPath調用兩次
這裏的是事件序列:
TableView::didSelectRowAtIndexPath.
TableView::viewWillDisappear.
PushedViewController::viewWillAppear.
TableView::didSelectRowAtIndexPath.
Error: Pushing the same view controller instance more than once is not supported'
值得一提的唯一的事情是UITableView的加載圖像異步,但永遠不會調用didSelectRowAtIndexPath
。此外,重複使用PushedViewController以避免每次在UITableView中選擇一個單元格時重新加載它。
任何人有任何想法可能會導致此? 謝謝。
發佈一些相關的代碼? – Jamie 2011-04-16 16:52:57
請確保你的呼叫deselectrowatindx路徑沒有選擇...... – Ravin 2011-04-16 17:04:56
Raving,我沒有打過電話。傑米,有什麼相關的代碼?有一個pushViewController,然後發生上述情況(並非所有的時間)。 – 2011-04-17 02:25:54