Вы должны иметь правильные имена файлов. Вы сказали, что считаете имена файлов правильными.
NSLog(@"Loop %d: d%dimage%d.png", i,imageSection, i]);
Выйдите из имен файлов, чтобы вы могли видеть, какие имена на самом деле. Поместите эту линию в свой цикл.
NSUInteger i;
for (i = 1; i <= numberOfImage; i++)
{
NSString *imageName = [NSString stringWithFormat:@"d%dimage%d.png", imageSection, i];
NSLog(@"Loop %d: d%dimage%d.png", i,imageSection, i]);
UIImage *image = [UIImage imageNamed:imageName];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
// setup each frame to a default height and width, it will be properly placed when we call "updateScrollList"
CGRect rect = imageView.frame;
rect.size.height = kScrollObjHeight;
rect.size.width = kScrollObjWidth;
imageView.frame = rect;
imageView.tag = i; // tag our images for later use when we place them in serial fashion
[scrollView addSubview:imageView];
[imageView release];
}
Затем проследите за именами файлов в отладчике и посмотрите, существуют ли эти файлы изображений и в том же каталоге, где Apple поместила их файлы изображений.