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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:55:32+00:00 2026-05-24T11:55:32+00:00

I cant locate in apple docs nor scanning the web for the solution to

  • 0

I cant locate in apple docs nor scanning the web for the solution to this problem.

I retrieve images (all ~70KB) from Core Data store using a fetch request with sort descriptor, make a mutable copy of the result and add the objects to a mutable array as follows…

NSFetchRequest *requestA = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"YearPhoto" inManagedObjectContext:managedObjectContext];
[requestA setEntity:entity];

NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:YES];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
[requestA setSortDescriptors:sortDescriptors];
[sortDescriptor release];
[sortDescriptors release];



NSError *error = nil;
NSMutableArray *mutableFetchResultsA = [[managedObjectContext executeFetchRequest:requestA error:&error] mutableCopy];
if (mutableFetchResultsA == nil) {

}

[self setImageArray:mutableFetchResultsA];
[mutableFetchResultsA release];
[requestA release];

I then setAnimationImages to this mutable array……

 self.theImageView.animationImages = [NSMutableArray arrayWithArray:imageArray];

I have checked using

NSLog(@"array's content:%@",imageArray);

Which confirms the array is not (null), I get multiple examples of below as expected….

"<YearPhoto: 0x16d0e0> (entity: YearPhoto; id: 0x16bc10 <x-coredata://2F4DDE20-855E-484A-AC8F-9F8E60F4162E/YearPhoto/p1> ; data: <fault>)",

When the app crashes, it faults on this line of code..

    self.theImageView.animationImages = [NSMutableArray arrayWithArray:imageArray];

Debugger throws out…

2011-08-03 15:53:24.843 Year_book_app[2773:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[YearPhoto scale]: unrecognized selector sent to instance 0x190d60'

I have no idea why it fails. Can anyone shed any light on the matter. Am I seeding the animation images correctly?

I thank you in advance of any help!!

If you need any further details, please let me know.

DetartrateD.

  • 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-05-24T11:55:33+00:00Added an answer on May 24, 2026 at 11:55 am

    Well the problem is you are sending objects that are type of YearPhoto instead of UIImage. self.theImageView.animationImages takes an array of UIImages as a valid value.

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

Sidebar

Related Questions

I get this error: Can't locate Foo.pm in @INC Is there an easier way
I have HTML code like this <td>Save</td> I couldn't locate the element using FireFinder
#!/usr/bin/perl -w use WWW::Mechanize; print $WWW::Mechanize::VERSION.\n; 1) run from Textmate : Can't locate WWW/Mechanize.pm
After installing the XML::Schematron::XPath module from CPAN I am getting the Can't locate XML/XPath.pm
I'm sure this has been asked here already but I can't locate the answer...
I cant locate it in the Developer folder in xcode 4 with the iOS
I have a problem I can't locate clearly, maybe you can help me... I
I have a problem with the second app tutorial at apple tut site .
After searching around I cant seem to locate why the C# compiler is complaining
Can't locate stored files, but they seem to be downloaded only for the first

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.