Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7985001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:26:55+00:00 2026-06-04T11:26:55+00:00

I have a problem trying to load images to a UIScrollView , and I

  • 0

I have a problem trying to load images to a UIScrollView, 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:

  1. Delete and add again.
  2. Delete cache with Clean option
  3. Restore iphone simulator cache

But I’m not sure if the problem is in my 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 <    [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;

}

EDITED: Here it is an screen shoot of the project file system, images are stores in exular/GBC/Caras:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:26:57+00:00Added an answer on June 4, 2026 at 11:26 am

    From your screenshot it seems that you added “Caras” folder as reference. If you add folder as reference, then path to its files in app bundle will be “foldername/filename”, not “filename”.

    Try using

    NSString *imagePath = [NSString stringWithFormat:@"Caras/%@", [fotosJugadores objectAtIndex:i]];
    UIImage *myImage = [UIImage imageNamed:imagePath];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with out of memory when I'm trying load a few
Ok I have this problem I'm trying to use Jquery to load a partial
I have a problem trying to show some images on my winform. On one
I have a folder of images, altogether 32x32 tiles. I am trying to load
I have a problem trying to design some generic storage.. Basically I have the
I have a problem trying to edit. I work with Areas for better management
I have a problem trying to hide .php extension from the url I have
I implemented the table sorter yesterday and i have a problem trying to change
I have a problem when trying to execute this update statement (below) using C#
I have this problem when trying to run hello world program using android SDK.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.