Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView word wrap breaks in the middle of a word

I'm using a UITextView to present definitions which may be one or more lines long. When it does go past a lane, if often wraps in the middle of a word.

Is this normal? What can be done to prevent this?

like image 949
Jack BeNimble Avatar asked Oct 07 '11 17:10

Jack BeNimble


1 Answers

word wrap IS the default for IOS UITextView and the only reasons it fails Quuxplusone mentioned in his comment.

EITHER

  • the one word is longer (in pixels) than the textView's frame
  • the 'spaces' aren't really spaces but unbreakable spaces
like image 160
Daij-Djan Avatar answered Sep 30 '22 08:09

Daij-Djan