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

  • Home
  • SEARCH
  • 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 3875956
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:19:35+00:00 2026-05-19T22:19:35+00:00

In an app I have a plist : root —> dictionary cell —-> array

  • 0

In an app I have a plist:

root ---> dictionary
  cell ----> array
    item0 ---> string
    item1 ----> string

and so on.

In tableView which holds the data from this plist & tableview navigation bar holds an add button. When I clicked on it, it pushes another view which holds a text field & a button. I want to store the text field’s text into the plist in an array at the last object by clicking on the button.

Whenever I reload the tableview, the data is stored in the plist permanently.

  • 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-19T22:19:36+00:00Added an answer on May 19, 2026 at 10:19 pm

    here is the code….

    -(void)dataFetching
    {
    NSMutableDictionary *categoryList = [[NSMutableDictionary alloc] initWithContentsOfFile:@"Give the file path"];
    NSMutableArray *array =(NSMutableArray *) [categoryList valueForKey:@"write the array name here"];
    
    /* hope u know how a table loads data from the array */
    
    /*whenever add button is pressed on the table view cell, view would be shown with a textfield and a button, isn't it? */
    
    /* by setting the delegate for textfield, using the textfieldDidEnterEditing: method capture the text from the textfield*/
    // for example, 
    NSString *testStr = @"test String"; //[textfield text];
    //Now,
    
    int lastItemIndex = [array count];
    [array insertObject:testStr atIndex:lastItemIndex];
    // and whenever you want you can save it on to the file like this
    
    [categoryList writeToFile:@"Give the file path" atomically:YES];
    
    [categoryList release];
    }
    

    hope this helps…..

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

Sidebar

Related Questions

I have created a custom Settings.app bundle using the standard root.plist approach for the
I have a .plist that I have had translated in my app. Originally, I
I have other pages within my app preferences which are stored as separate files
I have a UINavigationController consisting of a tableview I want to load some data
In my iPhone app, I have a appSettings.plist. This allows me, but also others
I have plist in my iphone app and I want to read and write
I have app that exports data in CSV. Recently I added Open In... feature
In my app have a window splitted by a QSplitter, and I need to
On my rails app I have a list of items (like a task list)
For my Django app I have Events, Ratings, and Users. Ratings are related 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.