So I have a table view that contains a bunch of data. The user can navigate down, browse edit, etc. However when they edit and delete a row, and then navigate back via the nav controller, sometimes (not all the time) the app crashes throwing this error:
-[CALayer resourceType]: unrecognized selector sent to instance: *****开发者_C百科*****
does anyone know what could be causing this error? I can't seem to isolate the cases where this happens, it seems random. The data for this is coming from an array. Not sure if that makes a difference. Thanks in advance!
Must likely, you are over-releasing an object or releasing an object too soon (or not retaining an object).
Turn on zombie detection and try to reproduce the crash. (Instruments has a zombie detection mode or search Google for NSZombieEnabled).
精彩评论