Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-22-2009, 04:04 PM   #23 (permalink)
decay
Registered Member
 
Join Date: May 2009
Posts: 10
decay is on a distinguished road
Default

Quote:
Originally Posted by danielb21 View Post
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.
decay is offline   Reply With Quote
 

» Advertisements
» Online Users: 460
15 members and 445 guests
baja_yu, coolman, Droverson, evilmatt10, givensur, guusleijsten, Kieren Harrold, mer10, pabloruiz55, pochuang, Sami Gh, sledzeppelin, Speed, TheStalker, thestojkovic
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,636
Threads: 94,101
Posts: 402,819
Top Poster: BrianSlick (7,990)
Welcome to our newest member, samdanielblr
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:49 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.