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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:13:57+00:00 2026-05-13T16:13:57+00:00

My iPhone app has few settings that users is likely to change quite often.

  • 0

My iPhone app has few settings that users is likely to change quite often. I would like to know if there’s any suggested way of handling such settings (reading and saving them). On Apple sites I found only a tutorial about integrating your application settings with Settings app (link) but I don’t want a user to exit my app so he could just change the option.

Is there any default mechanism to handle such settings in app itself or do I have to implement a solution of my own?

  • 1 1 Answer
  • 1 View
  • 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-13T16:13:57+00:00Added an answer on May 13, 2026 at 4:13 pm

    Best and easiest way to store settings in the iPhone is through NSUserDefaults. Keeps you from having to deal with the file system or plists or any of that other stuff.

    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    
    NSString *storedVal = @"This is what you want to save";
    NSString *key = @"storedVal"; // the key for the data
    
    [defaults setObject:storedVal forKey:key];
    [defaults synchronize]; // this method is optional
    
    
    // Get the results out
    NSString *results = [defaults stringForKey:key];
    

    Here’s what Apple says on the types of objects you can store in the Defaults

    A default object must be a property
    list, that is, an instance of (or for
    collections a combination of instances
    of): NSData, NSString, NSNumber,
    NSDate, NSArray, or NSDictionary. If
    you want to store any other type of
    object, you should typically archive
    it to create an instance of NSData.

    There are some more caveats, like if you store an NSDictionary the key values must be strings.

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

Sidebar

Related Questions

My iPhone app has a built in RSS reader. There are images and I'd
I have a new iPhone app that has the following (and only the following)
I've developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with
I'm making an iPhone app that has information about different video games. How can
I am making a iPhone app that has two different targets. They use the
I'm developing an iPhone app that has a network component. I'm developing the app
I'm currently making an iPhone app that has PDF viewing a crucial part of
I am writing an iPhone app that has a number of UITextFields that requires
I have a web app, that also has an iPhone and Android app using
For an iPhone app that has to have a bunch of data inserted before

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.