कुछ परिस्थितियों में, 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
। साथ ही, PITViewController को UITableView में सेल चयनित होने पर प्रत्येक बार इसे पुनः लोड करने से बचने के लिए पुन: उपयोग किया जाता है।
किसी को भी यह पता है कि इसका क्या कारण हो सकता है? धन्यवाद।
कुछ प्रासंगिक कोड पोस्ट करें? – Jamie
सुनिश्चित करें कि आप कॉल करें deselectrowatindx पथ का चयन नहीं किया ...... – Ravin
रैविंग, मैं या तो कॉल नहीं कर रहा हूं। जेमी, क्या प्रासंगिक कोड? एक pushViewController है और फिर उपरोक्त होता है (हर समय नहीं)। –