iphone - Inserting a Background Image using Quartz2d and Context? -


I wrote a game using Quartz 2D. I would like to put a background image in the game. I have tried to do this using the view.insertSubView method but the background image is always placed at the top of the second sprites. Even this is not a solution by sendSubviewToBack. I think that somehow I need to pull the background image directly on the reference? Thanks in advance for any help,

Martin

< P> You can drag a picture with

  UIImage * myImage = [UIImage imageNamed: @ "imageName.png"]; [MyImage drawAtPoint: CGPointMake (0, 0)];  

But if this is always the same, then you should add a UIImageView below your UIView which will be ^^ to all your games (but not in the supervision, but when you view it in view) Drag


Comments