• 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: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];


  • Subject: Re: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 21 Aug 2002 16:15:59 -0700

On Wednesday, August 21, 2002, at 04:03 PM, Jeff Martirano wrote:

Hello all,

I'm trying to do something which would seem very simple. I have a drawRect method in a custom view that draws multiple items: a background image, some images that move across the screen, and some text. The animated images are drawn fine over the background image, but the text for some reason is always drawn underneath the background image so it can't be seen. Is there any way of specifying the order in which drawRect layers different elements?

The drawing happens in whatever order your code calls the drawing routines. If you want the text over everything, draw it last.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing]; (From: Jeff Martirano <email@hidden>)

  • Prev by Date: Re: Drawing into custom view from another object
  • Next by Date: Re: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];
  • Previous by thread: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];
  • Next by thread: Re: Newbie *me = [[Newbie alloc] initWithProblem:customViewDrawing];
  • Index(es):
    • Date
    • Thread