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 8228953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:38:05+00:00 2026-06-07T16:38:05+00:00

I have been playing around with Xcode lately and am stuck at this stupid

  • 0

I have been playing around with Xcode lately and am stuck at this stupid problem. Need help!
Okay I added 69 images to supporting files names 1.jpg,2.jpg…69.jpg. They are named so because a loop will be used to create an animation by displaying a series of images. Here is what i did.
Header file:

#import <UIKit/UIKit.h>

@interface myBitchViewController : UIViewController{
    NSMutableArray *images;
}

@property (retain, nonatomic) NSMutableArray *images;

@end

And implementation file:

#import "myBitchViewController.h"

@implementation myBitchViewController

@synthesize images;

- (void)viewDidLoad {
    for (int imagenumber = 1; imagenumber <= 69; imagenumber++) {
        NSMutableString *myString = [NSMutableString stringWithFormat:@"%i", imagenumber];
        [myString stringByAppendingString:@".jpg"];
        [images addObject:[UIImage imageNamed:myString]];
    }
    CGRect frame = CGRectMake(0.0, 0.0, 320.0, 460.0);
    UIImageView *imageview = [[UIImageView alloc] initWithFrame:frame];
    imageview.animationImages = images;
    imageview.contentMode = UIViewContentModeScaleAspectFit;

    imageview.animationDuration = 3;

    imageview.animationRepeatCount = 0;

    [imageview startAnimating];

    [self.view addSubview:imageview];

    [imageview release];

    [super viewDidLoad];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

@end

Now the issue is that the program doesn’t throw any error but when simulator runs it just shows blank grey screen instead of animation. Where am I going wrong?

  • 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-07T16:38:06+00:00Added an answer on June 7, 2026 at 4:38 pm

    It could just be that your NSMutableArray* images; is never created. By the way, it doesn’t need to be a property, you should create it just as a local variable in viewDidLoad – otherwise you’ll keep adding more and more images to it each time the view loads.

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

Sidebar

Related Questions

I have been playing around with this problem since yesterday. I can't seem to
I have been playing around with Python and math lately, and I ran in
I have been playing around with the min3D libraries a bit lately learning how
I have been playing around with this and wanted to get a second opinion.
I have been playing around with subprocess lately. As I do more and more;
I have been playing around lately with head.js but I have found a stranger
I have been playing around with this preference activity code for most of the
I have been playing around with this question. AvalonDock with Prism Region Adapter Where
I have been playing around with boost::signals2 for learning purposes lately, and I was
I have been playing around with C++11 lately, and came up with the following

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.