Re: Static text over an image
Re: Static text over an image
- Subject: Re: Static text over an image
- From: Rob Keniger <email@hidden>
- Date: Fri, 31 Oct 2008 12:50:11 +1000
On 31/10/2008, at 1:26 AM, Shawn Erickson wrote:
You normally deal with this by nesting views... your text view would
be a subview of the image view or by doing custom rendering.
Exactly right. As already stated, you add a view as a subview of
another by double-clicking the parent view (in this case the image
view) which will move IB's focus to the view itself.
If you now drag a control onto the view, it will be placed as a
subview of the selected view. This will make the new control always
render in front of the parent, because it is a subview in the view
hierarchy.
There is absolutely no need to do any programmatic modification of the
view hierarchy! You can do it all in Interface Builder.
--
Rob Keniger
_______________________________________________
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