I'm making an application for iOS 7 and iOS 8 and I would like to disable word wrapping in my UITextView
. I have some ASCII tables and I don't want them broken.
I didn't find the option in the StoryBoard and I tried to do it programatically. I have tried:
[textView setContentSize:[[textView attributedText] size]];
and
[textView.textContainer setSize:[[textView attributedText] size]];
Nothing seems to be working.