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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:02:18+00:00 2026-06-15T02:02:18+00:00

I’m following a tutorial for creating an animation using Xcode Version 4.5.2 in Mountain

  • 0

I’m following a tutorial for creating an animation using Xcode Version 4.5.2 in Mountain Lion 10.8.2. When trying to build the code below, I get a Parse Error Unexpected ‘@’ in program showing up for the ‘hopAnimation=‘ line. While searching, I have found examples that build simple animations in a different way, but nothing that seems to address this particular problem. I’m a noob to XCode programming and if anyone could help me correct the syntax, I would highly appreciate it. I would also like to thank all the contributors to stackflow for making this such a valuable resource. Searching for the answers to most of my prior questions always seemed to have you guys at the top of the results list.



    ViewController.m
    - (void)viewDidLoad
    {
        // load all the frames of our animation into an array
        NSArray *hopAnimation;
        hopAnimation=[[NSArray alloc] arrayWithObjects:
                      [UIImage imageNamed:@”frame-1.png”],
                      [UIImage imageNamed:@”frame-2.png”],
                      [UIImage imageNamed:@”frame-3.png”],
                      [UIImage imageNamed:@”frame-4.png”],
                      [UIImage imageNamed:@”frame-5.png”],
                      [UIImage imageNamed:@”frame-6.png”],
                      [UIImage imageNamed:@”frame-7.png”],
                      [UIImage imageNamed:@”frame-8.png”],
                      [UIImage imageNamed:@”frame-9.png”],
                      [UIImage imageNamed:@”frame-10.png”],
                      [UIImage imageNamed:@”frame-11.png”],
                      [UIImage imageNamed:@”frame-12.png”],
                      [UIImage imageNamed:@”frame-13.png”],
                      [UIImage imageNamed:@”frame-14.png”],
                      [UIImage imageNamed:@”frame-15.png”],
                      [UIImage imageNamed:@”frame-16.png”],
                      [UIImage imageNamed:@”frame-17.png”],
                      [UIImage imageNamed:@”frame-18.png”],
                      [UIImage imageNamed:@”frame-19.png”],
                      [UIImage imageNamed:@”frame-20.png”],nil];

        self.bunnyView1.animationImages=hopAnimation;
        self.bunnyView2.animationImages=hopAnimation;
        self.bunnyView3.animationImages=hopAnimation;
        self.bunnyView4.animationImages=hopAnimation;
        self.bunnyView5.animationImages=hopAnimation;
        self.bunnyView1.animationDuration=1;
        self.bunnyView2.animationDuration=1;
        self.bunnyView3.animationDuration=1;
        self.bunnyView4.animationDuration=1;
        self.bunnyView5.animationDuration=1;
       [super viewDidLoad];
    }

  • 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-15T02:02:20+00:00Added an answer on June 15, 2026 at 2:02 am

    There is no init method called arrayWithObjects. There is initWithObjects, or simply [NSArray arrayWithObjects] (without alloc), but this will not work. Also, your quotes are the “smart quotes”, the curly ones. I don’t know if it’s like that in Xcode, but you’ll probably have to use straight quotes (“) to make that work, too.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I am trying to understand how to use SyndicationItem to display feed which is

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.