My Homepwner App quits after about 6 added items and the low memory warning seems to never get fired, so the cache from the image store is not cleared.
I debugged this with instruments and the used memory rises, like expected, with every item added - later I see the memory warning in the Instruments App, but it doesn’t get fired in BNRImageStore. App just quits.
I have this in mit BNRImageStore init method:
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; [nc addObserver:self selector:@selector(clearCache:) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
And is it actually wise to fill the ImageStore to the point we get the low memory warning?
Should’t it be cleared much sooner?