2009-09-15

How to shift a given context in an iPhone application

CGContextTranslateCTM(context, 50, -350);

Code to shift the given context is shown above. First parameter is the context which wanted to shift. Second parameter is the value you want to shift the context along the x-axis and third parameter is the value you want to shift the context along the y-axis.

No comments: