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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:16:57+00:00 2026-05-23T17:16:57+00:00

I want to have a settings toggle on my app’s first screen. On my

  • 0

I want to have a settings toggle on my app’s first screen.

On my main view (the first one that shows when the app loads) I have a table. Each cell loads a different view.

I want to have a toggle on my main view that will change a few aspects of how the other views appear (text color and background image to be specific).

How can this be done?

  • 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-23T17:16:58+00:00Added an answer on May 23, 2026 at 5:16 pm

    I would recommend using NSUserDefaults. Here is the code that should be activated wherever the user changes their settings.

    [[NSUserDefaults standardUserDefaults] setBOOL:YES forKey@"Whatever"];
    

    And then, in the viewDidLoad part of the new screen, paste this:

    if ([[NSUserDefaults standardUserDefaults] boolForKey:@"Whatever"] == YES)
    
    {
    
        //Then do your settings here, for example if whatever toggles the color
    
        //then type: view.backgroundColor = [[UIColor redColor];
    
    }
    

    Obviously there are better ways than to use a bool to store info with NSUserDefaults. I would actually read Apple’s documentation for this one. It’s interesting and makes sense.

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

Sidebar

Related Questions

I want to have a settings toggle on my apps first screen. This setting
I want to have a setting in an iphone app that uses a toggle
In my Delphi Project i want to have a 'Settings' button that when clicked,
I have a site in rails and want to have site-wide settings. One part
HI, I want to have set configuration settings for a unit test project that
If I have many settings that I want to store in a cookie, should
I have a settings class that I want to be able to serialize and
I have a table that's generated by a normal PHP loop. What I want
I have settings.php file that I want to keep some constants in, like my
I have editor settings that I want to spread in all repositories. If the

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.