I’m trying to initialise an array of Photos, and am doing so like this:
NSMutableArray *photoList = [[NSMutableArray alloc] init];
self.photos = photoList;
But when this line of code runs, I get this error:
'NSInvalidArgumentException', reason: '-[Project setPhotos:]: unrecognized selector sent to instance 0xee8e310'
I’ve spent about three hours trying to find a fix but couldn’t, can anybody tell me what to do?
It seems to me that you haven’t created a property photos and if you have then it would also seem that this property is not
@synthesize‘d in your implementation, maybe you are using@dynamic, in which case it is up to you to create a- (void)setPhotos:(NSMutableArray*)photos;method