cgcontext

how to know which font can use in CGContextSelectFont()

in CGContextSelectFont how do i know which font are available? ...

incorrect position when draw image context into UIImage that has been scale to another size;

my uiimage has been add to UIView, then i transform it to scale 1.5 when i try to draw image context it will present incorrect position how to make ImageContext in transform size ? ...

CGContext line drawing: CGContextFillPath not working?

Anyone have any idea why CGContextFillPath won't work in the code snippet below? I'm using the following code to draw to a UIImageView. It's stroking the path correctly, but ignoring CGContextFillPath. UIGraphicsBeginImageContext(self.frame.size); [drawingView.image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.heig...

Set background color in table view while using Core Graphics to add vertical lines for grid

Hi All, I'm attempting to create a grid-style table using the UITableView by overwriting vertical lines on top of the standard horizontal lines provided by default in a UITableView. I am adapting my code to the example helpfully provided from this blog: http://www.iphonedevx.com/?p=153. First, the code which draws the vertical lines (sa...