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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:49:23+00:00 2026-06-15T16:49:23+00:00

so this is how my software should run. I have an agreement viewcontroller which

  • 0

so this is how my software should run.

I have an agreement viewcontroller which will display and ask users if they agree with our policy prior to running the software. Once the users agree by pressing an ‘agree’ button, it will disappear and never be shown again to them.

The problem is that I have to check if they previously agreed or not before loading views and decide if the program can skip the agreement page… and I’m not sure where to do it.

viewDidLoad() is definitely not the one cuz it’s literally called after a view is loaded. I tried with iniWithCoder() and no luck. I tried with didfinishlaunchingwithoptions() but it seems like storyboard doesn’t call it 🙁 …

Any advice for me plz?

I will be digging in iOS Developer Library while waiting for your advice. Thank you!

  • 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-06-15T16:49:24+00:00Added an answer on June 15, 2026 at 4:49 pm

    What you should do is record the fact that they clicked on the page in NSUserDefaults. From next time on check the NSUserDefaults and if it is present in that, do not show the page.

    Some sample code, you can put in the App Delegate or in your view controller logic.

    if([[NSUserDefaults standardUserDefaults] valueForKey:@"visited"]){
        NSLog(@"Second time visitor");
    }else{
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"visited"];
        NSLog(@"First time visitor");
    }
    
    [[NSUserDefaults standardUserDefaults] synchronize];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so I got this piece of vendor software that they said should be
I have a software requirement like that: An app run on window but this
I have some vb.net code which should print out labels using Teklynx LabelView software
We have a Windows Service as part of our software, this is used to
We have this software that has a webservices component. Now, the administrator of this
I have an application and I am analyzing memory crash dumps of this software.
Let's say I have a MySQL table that is something like this: software table:
I have this running software that is currently being used by about 400 people.
We need to write some software that will compile and run on both an
I have a java project I want to create which will be built on

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.