Memory leak in Apples 'Scrolling' sample code
- by John
Hi All,
I'm using code based on Apple's "Scrolling" sample code - here's where I have a problem:
// load all the images from our bundle and add them to the scroll view
NSUInteger i;
for (i = 1; i <= jNumImages; i++)
{
NSString *imageName = [NSString stringWithFormat:@"page%d.png", i];
UIImage *image = [UIImage imageNamed:imageName];
…