Cocoa/Interface Builder releases none-referenced object on NIB/XIB
Getting exceptions like
-[NSCFString yourAction:]: unrecognized selector sent to instance 0x751be30
Getting exceptions like
-[NSCFString yourAction:]: unrecognized selector sent to instance 0x751be30
* override copyWithZone:
@interface MyLayerAnimation : CABasicAnimation { MyItemLayer *relatedLayer; } @property (assign) __weak MyItemLayer *relatedLayer; @end @implementation MyLayerAnimation @synthesize relatedLayer; - (id)copyWithZone:(NSZone *)zone { MyLayerAnimation *newObj = [super copyWithZone:zone]; newObj.relatedLayer = self.relatedLayer; return newObj; } @end