Quote:
Originally Posted by danielb21
Ok, here is the text wrapping solution that I am using. This is very basic and ensures that the wrap happens at a "space".
If you have any questions, feel free to ask.
|
Actually, it does not have to be that complicated. You can use:
[NSString drawInRect:]
to get what you want. Just use the PDF context you are drawing to, and you have to perform a coordinate conversion, but if you make the rect high enough (you can calc this using [NSString sizeWithFont], all wrapping is done for you.