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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:28:25+00:00 2026-05-27T18:28:25+00:00

When the app is launched, I want to freeze UI for a second or

  • 0

When the app is launched, I want to freeze UI for a second or so to get a precondition service (for example – location service) initialized. Is there a way to do that?

  • 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-27T18:28:25+00:00Added an answer on May 27, 2026 at 6:28 pm

    Just place a transparent UIView on top of the entire screen and have it intercept all touch events.

    To intercept touch events, simply subclass a UIView and override

    - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event;

    Usually inside that method you’d call super on it, but in this case you would just return YES:

    - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
    {
        return YES;
    }
    

    If you’d like to be really fancy you can add a synthesized property to the UIView subclass called shouldInterceptTouches and do something like this:

    - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
     {
         return shouldInterceptTouches ? YES : [super pointInside:point withEvent:event];
     }
    

    Also remember to make sure that your transparent view is above the other views.

    Side-note: Apple’s Human Interface Guidelines don’t like it when you do stuff like that. A user will be confused and disappointed if your app is not responsive and it may cause them to quit the app if they think it’s frozen. You’re better off displaying some sort of UIActivityIndicatorView and disabling only the buttons absolutely necessary. Apple likes it when you do stuff like that in the background and allow the user to do other things, just in case it takes a while or fails.

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

Sidebar

Related Questions

Is there a convenient way to play a sound when the app is launched?
I want to launch a Service when the app is launched instead of an
I want to test my app for my app launched with a URL scheme
I am trying to get my app automatically launched when the phone gets connected
I'm trying to get my mac app to do something whenever Safari is launched.
I currently started working on a maven web-app project that needs to be launched
I have a client that want to have us develop an app that will
I'm writing a library that has an embedded Sinatra app launched via Thor. I
When I my app is launched I am showing a splash screen. That page
I have a tabbar app and I want to add login window that will

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.