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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:29:45+00:00 2026-06-10T05:29:45+00:00

I am developing a iOS app in which I am using Core Data. I

  • 0

I am developing a iOS app in which I am using Core Data. I am downloading data from a web service. Initially I have a table in which there is a field “to”. When data for one table is completed, I want to update “to” field of the table with a count of data that have been downloaded.

This is what I’ve used so far:

NSString *str;
NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@"Resume" inManagedObjectContext:[self managedObjectContext]]; 
NSFetchRequest *request2 = [[NSFetchRequest alloc] init];
[request2 setEntity:entityDesc];
NSError *error;
NSArray *objects=[[self managedObjectContext] executeFetchRequest:request2 error:&error];
for (NSManagedObject *info in objects) { 
   str=[NSString stringWithFormat:@"%@",[info valueForKey:@"to"]]; 
   int tableCount=[str intValue]+countValue;
   NSLog(@"tableCount===%d",tableCount);
   [info setValue:[NSNumber numberWithInt:tableCount] forKey:@"to"];
}
  • 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-10T05:29:46+00:00Added an answer on June 10, 2026 at 5:29 am

    Either in the last line of your FOR loop or AFTER the FOR loop add the following line to save your changes in Core Data:

    [[self managedObjectContext] save];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iOS app using Core Plot headers. I have different UI for
I am developing an app for iOS 5, which have to run in landscape
I'm developing a web app for iOS devices, and want to have a header
I'm developing a native mobile app for Android and iOS using PhoneGap.I have a
I am developing an iOS app in which I am streaming .mp3 files using
I have an iOS app which I am developing, this app has videos which
I am currently developing my first iOS app which i have tested on simulator
I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
I am developing and iOS app with both positions, Landscape and Portrait. Using iOS5,
I'm currently developing an app which needs to send authentication data with it to

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.