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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:28:32+00:00 2026-05-23T23:28:32+00:00

I have a .plist file containing a dictionary item, something like this: <dict> <dict>

  • 0

I have a .plist file containing a dictionary item, something like this:

<dict>
          <dict>
                     <key>Key one</key>
                     <string>string</string>
                     ...
          </dict>
          ...
</dict>

How can I edit the string of Key one?
I’m stuck here:

NSString *pathVibrate = [NSString stringWithString:@"plist path"
NSMutableDictionary *plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:pathVibrate];

EDIT.
The plist is like this :S

<dict>
          <key>Key One</key>
          <dict>
                     <key>Key one</key>
                     <string>string</string>
                     ...
          </dict>
          <key>Key Two</key>
          <dict>
                     <key>Key one</key>
                     <string>string</string>
                     ...
          </dict>
</dict>
  • 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-23T23:28:32+00:00Added an answer on May 23, 2026 at 11:28 pm

    Saving a plist is easy, simply use

    // for an array
    BOOL result = [myArray writeToFile:filename atomically:YES];
    
    // for a dictionary
    BOOL result = [myDict writeToFile:filename atomically:YES];
    
    // spot a pattern? :O)
    

    The atomically basically tells it not to overwrite any previous file until this file has been succesfully written – that way if the app crashes, or there is a problem with the write the old file that was there previously will still exist.

    If you aren’t familiar with the NSDictionary and NSArray classes it’s worth reading through the documentation on them. I can also recommend a good book called iPhone 3 Development by Apress which is a good beginners introduction (it’s what I started with a few years ago and I’m sure there be a 4.x update by now).

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

Sidebar

Related Questions

I have a .plist file that looks like this: <plist version=1.0> <array> <dict> <key>name</key>
I have a favorites plist file when I try to load it like this
i have created a plist file other than the default one that exists. Can
I have a .plist file containing array and dictionaries. I want to convert this
I have a plist file and i want edit this file, but setObject() in
So I have a plist structured string, that get dynamically (not from the file
I have one dictionary I need to save into a plist. The paletteDictionary always
I have a plist file which contains an array of dictionaries. Here is one
I have a list of points of interest in a plist file containing point
First post - hope I'm doing it right! I have a file, lexicon.plist, containing

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.