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

  • Home
  • SEARCH
  • 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 1928332
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:57:55+00:00 2026-05-17T06:57:55+00:00

I am attempting to create a UIView (and associated UIViewController ) which mimic the

  • 0

I am attempting to create a UIView (and associated UIViewController) which mimic the behaviour of UIAlertView. Given my requirements it seemed much neater to create my own implementation from scratch than attempt to subclass and modify UIAlertView. In order to do this I am getting a reference to the app delegate and then adding the UIViewController.view (with an alpha of around 0.6) as a subview of the main app window. This means it will appear on top of all other views on screen and emulate the dimmed background found in the UIAlertView.

All is working well, except the UIView (i.e. UIViewController.view) is not covering the status/carrier bar at the top of the screen. This means that all of the screen is dimmed except the carrier bar, which looks a bit strange! Is there any way to get the UIView to appear on top of the carrier bar? I have heard musings about adding a second UIWindow to the app, but this does not seem advisible (as the Apple docs say that you should only ever have one UIWindow in the app) and, even if this is the best solution, I am unsure about the technical implementation of such a solution.

  • 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-17T06:57:55+00:00Added an answer on May 17, 2026 at 6:57 am

    In order to cover the status bar without hiding it you need something to be above the status bar, and since the status bar is displayed in another window, you have to use a second window with UIWindowLevelStatusBar.

    I’ve done such a thing, it does work, but it feels like a hack, thanks to Apple’s docs, or the lack thereof. You create a second window just as usual. To hide it you should both set its hidden property and release it. To make sure you’re not leaking windows I recommend subclassing UIWindow for debugging sake and overriding its dealloc to include NSLog. Also, look at the UIApplication’s windows property, it should reflect window closing properly.

    The biggest pain in the rear is device orientation changes, though.

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

Sidebar

Related Questions

I am attempting to create a simple web app for iPad which needs to
I'm attempting to create a table with an automatic column, the value of which
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I'm currently attempting to create a tabbed interface in a web application, and based
I am attempting to create a small application to collect data received from an
I am attempting to create new membership users in an Ektron CMS400.NET-based website by
I'm attempting to create my first real C# application - a small pet project
I'm attempting to load a dll into MSSQL with: USE dbname GO CREATE ASSEMBLY
In attempting to create an initial, failing unit test in Visual Studio Professonal 2008's
When attempting to create a tag of a working copy we receive the error,

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.