• 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: Static text over an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Static text over an image (From: Andre Masse <email@hidden>)
 >Re: Static text over an image (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSOperationQueue broken?
  • Next by Date: tokenField:writeRepresentedObjects:toPasteboard:
  • Previous by thread: Re: Static text over an image
  • Next by thread: RE: Re: Static text over an image
  • Index(es):
    • Date
    • Thread