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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:45:25+00:00 2026-05-30T05:45:25+00:00

I’m trying to develop an iOS App that saves an ASIFormDataRequest (i.e Post with

  • 0

I’m trying to develop an iOS App that saves an ASIFormDataRequest (i.e Post with Images, Comments, etc.) like how Twitter App saves a tweet to its Drafts, or Path App and Instagram as well..

will it be possible to just save the “ASIFormDataRequest *request” instance directly to Core Data (which is to a type I don’t know)

or should I create different entities depending on the form request i want and save the request’s data?
Like for example,

[request setPostValue:@"something"    forKey:@"method"];
[request addPostValue:object1         forKey:@"key1"];
[request addPostValue:object2         forKey:@"key2"];
[request addPostValue:anImageURLPath  forKey:@"key3"];

..and Create an entity for the above request with attributes of the request’s post values?

  • 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-30T05:45:26+00:00Added an answer on May 30, 2026 at 5:45 am

    Probably best that you only save the values that you want to keep. You should create entities to store your values.

    You could have one entity for any form values, with a one-to-many relationship to another entity- which is a simple key/value pair for the post values that you have

    this tutorial is the one I used to learn basic CoreData. It walks you through creating entities and making relationships between them

    EDIT: In answer to your question in the comments:

    I would assume that you have models (data classes/entities or whatever you call them) to represent ‘A Post’. I haven’t seen your code and I’m not sure how you’ve written it, but this is how I would implement it.

    1) Have a form that gets data from the user. (and a model representing this form)

    2) The User hits ‘Send’ which passes that data (as a model) to a Network Service, which converts it into a FormDataRequest and tries to send.

    3) If The Network fails, (or if the user just hits ‘Save Draft’), the model is then sent to a Data Service which Saves the model to CoreData. (creates a CoreData Entity -which should be similar if not the same as the model- copies the values over, and saves the entity)

    as (half) pseudocode 😛

    class MyFormViewController{
        // Obviously declared in the header file ;)
        TextField name;
        TextField dob;
        ...
        // View Stuff dealing with displaying the form
        ...
    
        function getModelForFieldValues() {
            Model m;
            m.name = name.Text;
            m.dob = dob.Text;
            return m;
        }
    
        function send_buttonPress() {
            Model myModel = getModelForFieldValues();
            BOOL success = NetworkService.send(myModel); //Attempts to send the data over the network
            if(!success) {
                DataService.save(myModel); //Saves the model data to CoreData
            }
        }
    
        function saveDraft_buttonPress() {
            Model myModel = getModelForFieldValues();
            DataService.save(myModel);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
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
For some reason, after submitting a string like this Jack’s Spindle from a text
I would like to count the length of a string with PHP. The string

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.