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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:24:22+00:00 2026-05-24T09:24:22+00:00

I have an application that is based on a UINavigationController; I wish to add

  • 0

I have an application that is based on a UINavigationController; I wish to add a “Setting” page where the user will have the ability to set some features like Language and some other preferences.
Currently the UIViewController where I wish to have the Setting fields in is 2 levels under the RootViewController (i.e. there is a “main view” >> you click on a button and enter another UIViewController and form there you should be able to enter the Setting UIViewController).

I’m not clear about how I’m supposed to save this data and how to call it upon application load.

I read some blogs about NSUserDefaults and about Singleton but I’m not clear how should I use them.

Where should I create the data attributs that will later on maintain the user preferences? Should I create them on the AppDelegate or on the MySettingsViewController (the UIViewController that I’m creating)?

Should I use a Singleton attribute, and if so, where should it be created?

When you say “Singleton”, do you actually mean creating a Static attribute?

Is there another way to communicate between 2 controllers that are not directly connected one to the other (I can transfer data from the “bottom” ViewController to the RootViewController passing it via the UIViewController in the middle, but it seems weird and ineffective)?

Any direction / tutorial will be appreciated!

  • 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-24T09:24:22+00:00Added an answer on May 24, 2026 at 9:24 am

    Definitely use NSUserDefaults. It’s great, and Apple recommends it.

    To set a setting:

    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"Setting 1"];
    

    You can also store other things, such as text, numbers, etc. Much more than a simple boolean.

    To check the setting:

    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"Setting 1"]) {
        //ok, do the thing here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an application containing a lot of user controls that update frequently based
We have a web application that is based around a form that gets passed
I have a web-based application that notifies users of activity on the site via
We have an Excel 2002/XP based application that interacts with SQL 2000/5 to process
I have a legacy C++-based application that timestamps incoming network traffic using the CRT
I have a client server based windows forms application that needs an administrator only
I have started design of a ColdFusion application that is entirely web based. Not
I have a java based application that manipulates a mysql database. I would like
I have an application that sends messages to an external web service. I build
I have an application that displays an image inside of a Windows Forms PictureBox

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.