Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ionini

macrumors newbie
Original poster
Aug 29, 2011
13
0
Code:
 for (x=0; x<15; x++) {
        num = [NSString stringWithFormat:@"%i", x];
        imagennombre =  [NSString stringWithFormat:@"%@%@", @"BIT_nadandoLoop_000", num];
        UIImage * imagen = [UIImage imageNamed:imagennombre];
        [imagenes addObject:imagen];

    }
    for (x=0; x<15; x++) {
        imageview.image=[UIImage imagenes[x]];
        
    }
I have no idea how to do this...
please help.
 
I'll keep it easy for ya
Code:
NSMutableArray *imageArray = [[NSMutableArray alloc] initWithObjects:@"testImage.png", @"test2image.png", @"test3image.png", nil];
for (int i = 0; i < [imageArray count]; i++)
{
   UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[imageArray objectAtIndex:i]];
}

I'm on my windows machine so can't really test it, but should be something similair like that, your array is just wrong, you are trying to use C cyntax instead of ObjC (should work though.)
 
Code:
 for (x=0; x<15; x++) {
        num = [NSString stringWithFormat:@"%i", x];
        imagennombre =  [NSString stringWithFormat:@"%@%@", @"BIT_nadandoLoop_000", num];
        UIImage * imagen = [UIImage imageNamed:imagennombre];
        [imagenes addObject:imagen];

    }
    for (x=0; x<15; x++) {
        imageview.image=[UIImage imagenes[x]];
        
    }
I have no idea how to do this...
please help.

Once again, I have no idea what it is you are asking.
 
Code:
 for (x=0; x<15; x++) {
        num = [NSString stringWithFormat:@"%i", x];
        imagennombre =  [NSString stringWithFormat:@"%@%@", @"BIT_nadandoLoop_000", num];
        UIImage * imagen = [UIImage imageNamed:imagennombre];
        [imagenes addObject:imagen];

    }
    for (x=0; x<15; x++) {
        imageview.image=[UIImage imagenes[x]];
        
    }
I have no idea how to do this...
please help.

Is this really different from your previous thread?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.