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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:28:06+00:00 2026-06-15T15:28:06+00:00

My code was working fine then all of a sudden i got these 4

  • 0

My code was working fine then all of a sudden i got these 4 random parse issues…
Can anyone help me out with whats happened?

Image below shows the issues.

http://postimage.org/image/qu0gzsoe3/

Code is also below

    #import "ComputingProjectFirstViewController.h"

@interface ComputingProjectFirstViewController()



@end

@implementation ComputingProjectFirstViewController

@synthesize imageview = HomeImage;

- (void)viewDidLoad
{

    NSAssert(self.imageview, @"self.imageView is nil. Check your IBOutlet connections");

    imageArray = [NSArray arrayWithObjects:
                  [UIImage imageNamed:@"wide awake 0.jpg"],
                  [UIImage imageNamed:@"wide awake 1.jpg"],
                  [UIImage imageNamed:@"wide awake 2.jpg"],
                  [UIImage imageNamed:@"wide awake 3.jpg"],
                  [UIImage imageNamed:@"wide awake 4.jpg"],
                  [UIImage imageNamed:@"wide awake 5.jpg"],
                  [UIImage imageNamed:@"wide awake 6.jpg"],
                  nil];
                self.imageview.backgroundColor = [UIColor blackColor];
                  self.imageview.clipsToBounds = YES;

    int count = [imageArray count];
    for (int i = 0; i <count-1 ; i++)
    {
        UIImage *currentImage = [imageArray objectAtIndex: i];
        UIImage *nextImage = [imageArray objectAtIndex: i +1];
        self.imageview.image = [imageArray objectAtIndex: i];
        [self.view addSubview:self.imageview];
        CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"];
        crossFade.duration = 5.0;
        crossFade.fromValue = (__bridge id)(currentImage.CGImage);
        crossFade.toValue = (__bridge id)(nextImage.CGImage);
        [self.imageview.layer addAnimation:crossFade forKey:@"animateContents"];
        self.imageview.image = nextImage;

    };

.h file:

 #import <UIKit/UIKit.h> 
 #import <QuartzCore/QuartzCore.h>
 #import <MessageUI/MessageUI.h>


 @interface ComputingProjectFirstViewController :       UIViewController<MFMailComposeViewControllerDelegate>{
UIImageView* HomeImage;
NSArray *imageArray;


@property (nonatomic, retain) IBOutlet UIImageView* imageview;



@end    
  • 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-15T15:28:07+00:00Added an answer on June 15, 2026 at 3:28 pm

    If thats all you have for viewDidLoad your missing a extra } at the end your viewDidLoad method, also remove your ; at the end of your for loop. Should be like this

    #import "ComputingProjectFirstViewController.h"
    
    @interface ComputingProjectFirstViewController()
    
    
    
    @end
    
    @implementation ComputingProjectFirstViewController
    
    @synthesize imageview = HomeImage;
    
    - (void)viewDidLoad
    {
    
        NSAssert(self.imageview, @"self.imageView is nil. Check your IBOutlet connections");
    
        imageArray = [NSArray arrayWithObjects:
                     [UIImage imageNamed:@"wide awake 0.jpg"],
                     [UIImage imageNamed:@"wide awake 1.jpg"],
                     [UIImage imageNamed:@"wide awake 2.jpg"],
                     [UIImage imageNamed:@"wide awake 3.jpg"],
                     [UIImage imageNamed:@"wide awake 4.jpg"],
                     [UIImage imageNamed:@"wide awake 5.jpg"],
                     [UIImage imageNamed:@"wide awake 6.jpg"],
                     nil];
                     self.imageview.backgroundColor = [UIColor blackColor];
                     self.imageview.clipsToBounds = YES;
    
        int count = [imageArray count];
        for (int i = 0; i <count-1 ; i++)
        {
            UIImage *currentImage = [imageArray objectAtIndex: i];
            UIImage *nextImage = [imageArray objectAtIndex: i +1];
            self.imageview.image = [imageArray objectAtIndex: i];
            [self.view addSubview:self.imageview];
            CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"];
            crossFade.duration = 5.0;
            crossFade.fromValue = (__bridge id)(currentImage.CGImage);
            crossFade.toValue = (__bridge id)(nextImage.CGImage);
            [self.imageview.layer addAnimation:crossFade forKey:@"animateContents"];
            self.imageview.image = nextImage;
    
        }
    }
    

    Also in your header you are missing a } should look like this :

     #import <UIKit/UIKit.h> 
     #import <QuartzCore/QuartzCore.h>
     #import <MessageUI/MessageUI.h>
    
    
     @interface ComputingProjectFirstViewController : UIViewController<MFMailComposeViewControllerDelegate>{
        UIImageView* HomeImage;
        NSArray *imageArray;
     }
    
     @property (nonatomic, retain) IBOutlet UIImageView* imageview;
    
    
    
     @end 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone got any Idea why this code is not working, It was working fine
Anyone got any Idea why this code is not working, It was working fine
I've got Code Contracts working fine from inside Visual Studio 2010, but I can't
So basically this code was working fine before. I had some computer issues and
My project was working fine couple of minutes ago,all of a sudden i run
I've been running into this problem with odd regularity. Code working fine, and then
I’m trying to issue web requests asynchronously. I have my code working fine except
My code is working fine without any errors when running in Netbeans. If I
the below code is working fine if the user enters the USN number that
For single output types my code is working fine but I couldn't get how

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.