• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying a view modally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying a view modally


  • Subject: Re: Displaying a view modally
  • From: glenn andreas <email@hidden>
  • Date: Thu, 22 Oct 2009 09:19:28 -0500


On Oct 21, 2009, at 7:54 PM, Saurabh Sharan wrote:

Check out SFHudView by Buzz Andersen (
http://github.com/ldandersen/scifihifi-iphone/blob/master/UI/SFHFHUDView.h )
Saurabh



That code runs contrary to the documentation ("iPhone Application Programming Guide", "Windows and Views"):


Although iPhone OS supports layering windows on top of each other, your application should never create more than one window. The system itself uses additional windows to display the system status bar, important alerts, and other types of messages on top of your application’s windows. If you want to display alerts on top of your content, use the alert views provided by UIKit rather than creating additional windows.




Ignoring this will result in inconsistent behavior between different OS releases.

You're better off making a simple blocking view that "consumes" all the touch events (i.e., implements everything, but does nothing), give it a translucent gray background and make it the size of the window, and add it as a subview of the window, on top of everything else.

Then add your modal content view on top of that blocking view.



Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Displaying a view modally (From: Mike Manzano <email@hidden>)
 >Re: Displaying a view modally (From: Saurabh Sharan <email@hidden>)

  • Prev by Date: Re: NSTextField not getting mouseDown
  • Next by Date: Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]
  • Previous by thread: Re: Displaying a view modally
  • Next by thread: [SOLVED] Re: Displaying a view modally
  • Index(es):
    • Date
    • Thread