Potential leak of an object allocated on line 89 and stored into imageView
Some code:
NSUInteger i;
for (i = 0; i < kNumImages; i++)
{
NSString *imageName = [NSString stringWithFormat:@"BackGround%i.png", i];
UIImage *image = [UIImage imageNamed:imageName];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
CGRect rect = imageView.frame;
rect.size.height = kScrollObjHeight;
rect.size.width = kScrollObjWidth;
imageView.frame = rect;
imageView.userInteractionEnabled = YES;
}
And I don’t know what to do…
needs to happen inside that loop after the rest of the code. Although you don’t seem to be doing anything with it.