How can I draw a triangle, say, shaped view with the help of core-graphics drawing techni开发者_如何学编程ques?Implement drawRect on your view, and then just use the CGContextDraw-type methods to draw
Hey all, I\'m am trying to make a very interactive UI with lots of animations and effects. But I don\'t know if:
how can i use drawLayer for multiple layers in one class? I was thinking maybe something like this: - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context {
I have a UIView subclass that draws a curved line within it\'s frame (using Core Graphi开发者_运维知识库cs). As expected, when you touch somewhere within the frame the view fires a touch event. But I
In my OpenGL-ES 1.1 based app, I\'m using CALayers as a source for OpenGL textures. Those CALayers comprise of CGImages and text rendered through CoreGraphics. Another OpenGL texture source is a scree
I posted that question and I开发者_开发技巧 have not yet found a solution. I was wondering if there is a way to use an UIImage to delete a part of an other UIImage
I am trying to add unit tests to my iPhone project in Xcode.Everything works, its great.Except when I am adding a class.m that uses CGRect (or other structs, CGPoint etc) to the unit test target (unde
I have a problem with the core graphic of iPhone. Below is a drawing which demonstrate this problem: There is a mask with a human shape, I\'m put the mask upon an image, I\'m doing \"something\" (t
I\'d like to know how some developers achieve amazing functionality with core technologies. My education in programming was based only in high level programming languages like c# and java and I find v
The use case: I am subclassing UIView to create a custom view that \"mattes\" a UIImage with a rounded rectangle (clips the image to a rounded rect).The code is working; I\'ve used a method similar to