views:

21

answers:

0

Good morning to all, i have now the following method that shows the AFOpenFlow:

NSString *imageName;
for (int i=0; i < 10; i++) {
    imageName = [[NSString alloc] initWithFormat:@"cover_%d.jpg", i];
    imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
    CGRect frame = [imageView frame];
    frame.size.width = 100.0f;
    frame.size.height = 100.0f;
    [imageView setFrame:frame];
    [imageView setUserInteractionEnabled:YES];
    imageView.frame = self.view.frame;
    imageView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
    [(AFOpenFlowView *)self.view setImage:imageView.image forIndex:i];
    [imageName release];
    NSLog(@"%d is the index",i);

}
[(AFOpenFlowView *)self.view setNumberOfImages:10];

The Images have all another size, but how could i implement that each picture hast the same size??? In the loop in line 3 up to 5, i have tried something, but that doesn't works!

Thanks beforehand