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                      gandr...@gandreas.com
 <http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to