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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:31:05+00:00 2026-06-09T02:31:05+00:00

I believe I have the code for determining if my application has been opened

  • 0

I believe I have the code for determining if my application has been opened before set in stone:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
BOOL didFirstLaunch = [defaults boolForKey:@"DidFirstLaunch"];
if (!didFirstLaunch) {
    [defaults setBool: YES forKey:@"DidFirstLaunch"];

    //Code for assembling overlay view
}

I put this code in the didFinishLaunchingWithOptions method.

I want the transparent overlay view to only cover 3/4 of the iPhone screen and be slightly transparent so you can still see a little of the main page of my application — it will have a couple pictures and text on it (basically a simple tutorial). How do I go about creating a simple view of this nature?

  • 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-09T02:31:06+00:00Added an answer on June 9, 2026 at 2:31 am

    You should put your code in didFinishLaunchingWithOptions method:

    BOOL didFirstLaunch = [[NSUserDefaults standardUserDefaults] boolForKey:@"DidFirstLaunch"];
    
    if (!didFirstLaunch) {
    
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"DidFirstLaunch"];
        [[NSUserDefaults standardUserDefaults] synchronize];
    
        UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, window.frame.size.width, window.frame.size.height)];
        //add some stuff to your transparent view. Example background color
        [v setBackgroundColor:[UIColor orangeColor]];
    
        // Finally set the alpha value
        [v setAlpha:0.3];
        [window addSubview:v];
    
    }
    

    Hope it helps. 😉

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

Sidebar

Related Questions

I've recently been trying to port a C++ application. I believe I have all
I believe I have my code set up correctly but when I try to
I have a problem with some code and I believe it is because of
I have a very strange bug, which I believe is caused by some code
I have been lead to believe that it is possible to pass a class
I have a small doubt I have following code bool res= false; if(cond1) {
I believe it is usual to have such code in C++ for(size_t i=0;i<ARRAY_SIZE;++i) A[i]=B[i]*C[i];
I have an application for which I do not have the code, and a
This is something that I cannot believe I have not been able to figure
believe me I have tried to code this, tried Google, and haven't had any

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.