Re: How to specify the superview in the Interface Builder?
Re: How to specify the superview in the Interface Builder?
- Subject: Re: How to specify the superview in the Interface Builder?
- From: glenn andreas <email@hidden>
- Date: Fri, 04 Jun 2010 12:25:11 -0500
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@hidden
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@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