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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:33:09+00:00 2026-06-07T17:33:09+00:00

I am populating a UITableView with Person objects stored in Core Data. Each person

  • 0

I am populating a UITableView with Person objects stored in Core Data. Each person has a firstName, lastName, and image. The image is a relationship to a separate Image entity which has a property called data of type Transformable. This is where I am storing the image associated with each Person.

I am populating the table with:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"PersonCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    // Configure the cell...
    Person *person = [self.fetchedResultsController objectAtIndexPath:indexPath];

    NSMutableString *nameString = [[NSMutableString alloc] init];

    if (person.firstName)
    {
        [nameString appendString:[NSString stringWithFormat:@"%@ ",person.firstName]];
    }
    if (person.lastName)
    {
        [nameString appendString:person.lastName];
    }

    cell.textLabel.text = nameString;

    UIImage *image = person.image.data;
    cell.imageView.image = image;

    return cell;
}

When I run my app, I get the error:

: CGAffineTransformInvert: singular matrix.

once for each item in the table or database.

if I comment out the line:

cell.imageView.image = image;

the error goes away.

Any ideas? This is the first time I’ve stored binary data in Core Data, maybe its not transforming right?

This is how I”m storing the image:

UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
self.person = [Person personWithImage:image inManagedObjectContext:self.context];

and

+ (Person *)personWithImage: (UIImage *)image inManagedObjectContext:(NSManagedObjectContext *)context
{
    Image *newImage = [NSEntityDescription insertNewObjectForEntityForName:@"Image" inManagedObjectContext:context];
    newImage.data = image;

    Person *newPerson = [NSEntityDescription insertNewObjectForEntityForName:@"Person"
                                                    inManagedObjectContext:context];
    newPerson.image = newImage;

    return newPerson;
}

thanks,

Gerry

  • 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-07T17:33:11+00:00Added an answer on June 7, 2026 at 5:33 pm

    OK, I figured this out by luck. my uitableview uses images in the cells, and i was putting the full size camera images in there, and of course ran into some memory issues. as soon as I started resizing the images to 960×640, that random CGAffineTransformInvert error went away!

    I still don’t know why it was happening in the first place, but i guess it doesn’t really matter because its gone now.

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

Sidebar

Related Questions

I have a UITableView I'm populating with data from CoreData. I have a data
I'm populating an UITableView with MYSQL data from and external DB on my host,so
I am working on populating my database with test data using populate.rake: Repertoire.includes(:jokes).each do
I am populating a UITableViewController's UITableView through code only. At the bottom of the
I have been populating a UITable view cell with the data fetched from a
im populating the data in the combo box using dataset tables...with some table name..now
I am populating Employee Data in JTable using Netbeans. I want to add Radiobutton
I have setup Core Data for an iPhone app without an instance of NSFetchedResultsController.
I have a UITableview setup in my iphone app. At the moment, each row
I have a UITableView. I'm population it from a NSDictionary with arrays for each

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.