Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

draw text using coregraphics in iphone

How to draw text on imageview using coregraphics in iphone

like image 870
Krishna Chaitanya Bandaru Avatar asked May 28 '10 11:05

Krishna Chaitanya Bandaru


1 Answers

Either use a UILabel over your imageView or draw a string in the current graphics context with

- (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font lineBreakMode:(UILineBreakMode)lineBreakMode
like image 180
AlexVogel Avatar answered Oct 14 '22 17:10

AlexVogel