Tutorial by Examples

CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(context, 5.0); CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); CGContextMoveToPoint(context, 200, 400); CGContextAddLineToPoint(context, 100, 100); CGContextStrokePath(context); CGColorSpaceRelease(colors...
Draw To requires Core Text framework to be added in the Build Phase [NSString* textToDraw = @"Welcome to the world Of IOS"; CFStringRef stringRef = (__bridge CFStringRef)textToDraw; CFAttributedStringRef currentText = CFAttributedStringCreate(NULL, stringRef, NULL); ...

Page 1 of 1