Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ray648

macrumors regular
Original poster
Jan 10, 2008
118
0
I've got an ipad app with a UITextView containing a lot of text. The default is that word wrap is on, and lines are always broken between words. Is there any way of making this a bit less clever? I want it to just break lines at the point they reach the edge of the TextView, in the middle of a word if thats where it happens. Anyone know of a way to achieve this?
 
Some of the UIKit views have a UILineBreakMode property, which you could set to UILineBreakModeCharacterWrap. As far as I can tell UITextView has no such property, including its base class and adopted protocols. I don't see any way to change the way it wraps text.

If your text is not editable then you could use a UILabel.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.