I have a jpg picture in my “Other Sources” folder, on xcode. Nice. But I’m trying to add this image to my NSMutableArray.
[self.gallery addObject:[[NSBundle mainBundle] pathForResource:@"001" ofType:@"jpg"]];
NSLog(@"%i", [self.gallery count]);
When I counts it, it returns 0.
What’s happening?
either
self.galleryis nil or there is no image001.jpgin your bundle