Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to figure out how to load images into a UIScrollView
    primarykey
    data
    text
    <p>I have a problem trying to load images to a <code>UIScrollView</code>, and I don't know exactly if the problem remains in the code or in the Xcode tendency to retain deleted images. I have tried all possible options:</p> <ol> <li>Delete and add again.</li> <li>Delete cache with Clean option</li> <li>Restore iphone simulator cache</li> </ol> <p>But I'm not sure if the problem is in my code:</p> <pre><code>fotosJugadores = [[NSArray alloc] initWithObjects:@"cara5.png", @"cara7.png", @"cara8.png", @"cara9.png", @"cara11.png", @"cara13.png", @"cara14.png", @"cara15.png", @"cara18.png",@"cara19.png", @"cara20.png", @"cara32.png",@"cara44.png",@"cara51.png", @"cara100.png", @"cara101.png", @"cara102.png",@"cara103.png", @"cara104.png", @"cara105.png",@"cara106.png",@"cara107.png", nil]; numberOfViews = [fotosJugadores count]; for (int i = 0; i &lt; [fotosJugadores count]; i++) { UIImage *myImage = [UIImage imageNamed:[fotosJugadores objectAtIndex:i]]; CGFloat yOrigin = i * myImage.size.width + 120; NSLog(@"my image %@", myImage); UIImageView *awesomeView = [[UIImageView alloc] initWithFrame:CGRectMake(yOrigin, 0, myImage.size.width, myImage.size.height)]; awesomeView.tag = i; awesomeView.image = myImage; awesomeView.alpha = 0.5f; awesomeView.backgroundColor = [UIColor blackColor]; [self.jugadorSlide addSubview:awesomeView]; awesomeView=nil; } </code></pre> <p>EDITED: Here it is an screen shoot of the project file system, images are stores in exular/GBC/Caras:</p> <p><img src="https://i.stack.imgur.com/6SpFD.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload