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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:02:41+00:00 2026-06-18T01:02:41+00:00

From View Programming Guide : … Windows do not have any visible content themselves

  • 0

From View Programming Guide:

“… Windows do not have any visible content themselves but provide a basic container for your application’s views. …”

What does “visible” mean? I can (without adding any UIViews to the window) set the colour of the window and it will be visible (on simulator) using the following two lines:

window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
window.backgroundColor = [UIColor whiteColor];

If I run my app, it will be white. Hence the question: what does “visible” mean in this context? And if a UIWindow is not supposed to have any visible content then why is it nonetheless implemented as to have an attribute backgroundColor? Thanks for your help.

  • 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-18T01:02:43+00:00Added an answer on June 18, 2026 at 1:02 am

    UIWindow is a subclass of UIView, which is why you’ll see the backgroundColor property. I’m not exactly sure how iOS handles this internally, but I assume that your root view controller’s view property is loaded into the window’s view to display content.

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

Sidebar

Related Questions

This is very basic question from programming point of view but as I am
I have read Apple Scroll View Programming Guide for iOS but still confused about
I was trying to follow the Table View Programming Guide for iPhone OS but
From Apple's View Controller Programming Guide / Managing Memory Efficiently; didReceiveMemoryWarning Use this method
I have a page where its meta-contents are deriving from view.yml file. <meta name=robots
The View controller programming guide states this regarding view controller's usage: Each custom view
I am following the Big Nerd Ranch iOS Programming Guide(3rd Edition), and have followed
Having meticulously followed the examples and instructions in the Table View Programming Guide for
From a programming/network point of view, what are the reasons why there are very
I'm reading about Model/View programming design pattern but I don't understand how to define

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.