views:

147

answers:

1

I want to draw a long NSString with UIStringDrawing and linebreakmode "word wrap". The problem is, that it only draws one line also with this linebreakmode parameter. Do i have to calculate this manually and split the string into an array to draw each line?

I don't want to use UILabel with numberOfLines stuff. I put emphasis on performance in the User-Interface (so i would pre-calculate that stuff).

Thank you!

A: 

The answer is really simple

NSString:drawInRect:withFont:

erazorx