IPhone tracking memory overwrites
I have an issue where i call a function on an object in one of my classes but at the time I call its holding a reference to a differ开发者_如何转开发ent object type and its a different type everytime, so i receive messages as so -[UIGestureRecognizerTarget stopConnection]: unrecognized selector sent to instance 0x6b23710
and the types are always UI type classes.
So this leads me to believe something is overriding memory somewhere and I can't track it down! It only happens when i delete a row from a UITableView, and thought that maybe this is deleting something before im ready for it too but nothing seems to have dealloced before im calling this function!
Is there anyway I can track when a value at memory address changes, or what would be the best way to track down what is changing the reference of my object in XCode??
This is a memory management issue. An object is being dealloced and another is being put in its place while you're still holding a reference to the old one. You can run the app with Zombies and see what object it is, but it's probably whatever object was being shown in your table view.
精彩评论