On Jun 4, 2010, at 11:53 AM, ico wrote:

> Hi all,
> 
> I have created a custom view in the Interface Builder, how can I specify the
> superview for this custom view? For example,
> I want to make its superview be UIWindow rather than another custom view.

Then drag a UIWindow from the library and put your view inside that.

Note, however, that you probably don't want to be doing that in general (except 
for the main nib).  From the UIWindow documentation:

> 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.


So if your design requires a view living in anything other than the main 
window, you should probably redesign it (or be prepared for lots of debugging 
and testing, since the way multiple UIWindows work varies between OS release, 
and possibility of rejection from the AppStore when you submit it)


Glenn Andreas                      [email protected] 
The most merciful thing in the world ... is the inability of the human mind to 
correlate all its contents - HPL

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to