CALayer UIImage rendered on top of content instead of below
CALayer UIImage rendered on top of content instead of below
- Subject: CALayer UIImage rendered on top of content instead of below
- From: Markus Spoettl <email@hidden>
- Date: Sat, 15 Dec 2012 00:07:49 +0100
Hi,
I have custom UIView with multiple layers, all custom drawn via delegate. In
one layer, I draw an image and on top of that image, I draw bezier paths and
rects. Or so I try. For some reason the image is rendered ABOVE what I draw OVER
it later.
So basically I have this (this is the actual code I reduced it to):
[img drawInRect:imgRect blendMode:kCGBlendModeNormal alpha:1.0];
followed by
[[UIColor redColor] setFill];
UIRectFill(imgRect);
I would expect to see a red rectangle, I get the image. Why? Would someone set
me straight, I feel I'm missing something basic.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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