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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:55:29+00:00 2026-05-13T16:55:29+00:00

I am working through the iPhone_3 Development book by Dave Mark and I have

  • 0

I am working through the iPhone_3 Development book by Dave Mark and I have a quick question arising from chapter_6 with regards to the way the UIToolbar is placed over the underlying view.

In the example in the book there are 2 controllers with associated views (blueView & yellowView) and a 3rd switchController (UISwitchController). Both the “yellow” & “blue” views are placed behind the view controllers view using atIndex:0 The only object on the view controllers view is a UIToolbar.

My question is how does the view controllers view know to make the area above the UIToolbar transparent so that you can see through to the “yellow” or “blue” views, whilst at the same time keeping the toolbar from that view visible?

Does that make any sense,

gary

  • 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-13T16:55:29+00:00Added an answer on May 13, 2026 at 4:55 pm

    Well, the view are inserted as subviews inside of of SwitchViewController.view, so they will always appear above the SwitchViewControllers view. The other view is removed, e.g. in

    [yellowViewController.view removeFromSuperview];
    [self.view insertSubview:blueViewController.view atIndex:0];
    

    Keep in mind that a view appears behind its subview by default, and insertSubview:atIndex: can’t place it behind the view itself, as a view is not contained in the list of its own subviews.

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

Sidebar

Related Questions

I am working through Beginning iPhone Development . In the book is this method:
I'm working through an iPhone development book* without really knowing Objective C. For the
I'm working through the tutorials in the Beginning iPhone Development book. I'm on chapter
I'm new to Cocoa/Cocoa Touch, and working through a development book. I've come across
I'm working through the Stanford iPhone podcasts and have some basic questions. The first:
i'm working on an iPhone application which retrieve sqlite database from server through json/rest
In working through the issues with another question, I've found text files with embedded
Very new to Objective-C and Xcode and working my way through modifying the DrillDownApp
New to iPhone development and working through exercises and examples to get me up
I'm working through a chapter about iPhone audio and have come across a section

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.