gabaum10
gabaum10

Reputation: 3827

strange error iPhone/iPad

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: **********

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!

Upvotes: 1

Views: 157

Answers (1)

bbum
bbum

Reputation: 162712

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).

Upvotes: 6

Related Questions