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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:12:56+00:00 2026-06-16T00:12:56+00:00

I already have a tableView with data in it. IF you tap a cell/row

  • 0

I already have a tableView with data in it. IF you tap a cell/row it pushes to an edit type of view. Is there anyway to edit core data’s data other than: By edit, i mean i already have data inserted into my context. I have loaded my data into my view, the user can change the existing data, and re save it.

.h

//Below is the entity/entity’s class name ‘Amm’

Amm *amm;

.m

 -(IBAction)save
{
[self.amm setValue:self.nameField.text forKey:@"name"];

[self.amm setValue:self.nicknameField.text forKey:@"nickname"];

[self.navigationController popViewControllerAnimated:YES];

NSError *error;

if (![self.managedObjectContext save:&error]) {

        //Handle Error
    }
}

I want this code to work, however the design pattern of my app isnt allowing this code to work for me as it does in other parts of my app. Thank you very much for any and all help!

  • 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-16T00:12:57+00:00Added an answer on June 16, 2026 at 12:12 am

    I assume from what you’ve said you have:

    • A table view listing your managed objects
    • A view where you can edit the values of a managed object
    • A save button bound to the save method

    What’s the actual issue? I’m assuming when you tap save that:

    • The values in self.nameField.text isn’t setting self.amm.name
    • The values in self.nicknameField.text isn’t setting self.amm.nickname

    Is that right? If so perhaps try the following code to set the managed object values:

    self.amm.name = self.nameField.text
    self.amm.nickname = self.nicknameField.text
    

    If that’s not the issue and you are actually setting the managed object values properly, is it that you just need to refresh the table-view? Perhaps use some NSLog commands to log every step of the applications progress.

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

Sidebar

Related Questions

I am new to core data .I have already performed insert and delete operations
We already have the database with real data inside. Now we want to build
I already have Java code to display and process data from a database. I
I have found many core data with nsfetchedresultscontroller tutorials, but none of them are
I have table view navigation controller and the data is loaded from url. I
I already have my azure web role running in cloud using azure sdk 1.6.
i already have a project with TreeNode class which creates a hierachy of nodes
I already have code which lazy loads scripts on request. My issue now is
I already have an enterprise Java EE application. I want expose some of the
I already have an iPhone application (version 1.0) available in the App Store and

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.