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

  • SEARCH
  • Home
  • 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 7789887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:25:40+00:00 2026-06-01T21:25:40+00:00

Ive got about 5,000 images labeled image_1 through to image_5000 how can I create

  • 0

Ive got about 5,000 images labeled image_1 through to image_5000 how can I create an animation that will cycle through each image and then repeat?
This is an iPhone application and is just for my personal use, any help is greatly appreciated.

Here is the code I am using, why is it not working.

 //.h
@interface ViewController : UIViewController{
IBOutlet UIImageView *imageView;
int i;
}
@end

 - (void)viewDidLoad
{

i = 0;
[NSTimer scheduledTimerWithTimeInterval:0.5
                                 target:self
                               selector:@selector(loop) 
                               userInfo:nil
                                repeats:YES];
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
-(void)loop{
if (i<MAX_IMAGES) {

    imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"image_%d.bmp",i]];
    NSLog(@"Image:%d",i);
        i+=1;
    if (i >= MAX_IMAGES) {
        i = 1;
    }
  }
}
  • 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-01T21:25:42+00:00Added an answer on June 1, 2026 at 9:25 pm

    I would use a NSTimer to load an image at a time into an UIIMageView. That way you can have controlled of the interval between images changes and minimized memory usage. Let me know if you need sample code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a SQL Server table with about 50,000 rows in it. I want
I've got some kind of community website, there are about 40.000 users in database
I've got a very large SQLite table with over 500,000 rows with about 15
I've got about 20 on/off switches that sends an ajax request which updates a
I've got about 25 tables that I'd like to update with random data that's
I've got a text file, with about 200,000 lines. Each line represents an object
I've got about 20,000 rows in an INNODB table called 'cards', so FULLTEXT is
I've got two collections, each containing about 40,000 items. The elements in list 2
I've got a table structure that can be summarized as follows: pagegroup * pagegroupid
Ive got an app that allows users to listen to music. Each artist has

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.