walli walli - 10 months ago 48
Objective-C Question

UITextView starts in the middle of the text

How to edit

UITextView
to show the text from the first word and not from the middle of the text in storyboards?

enter image description here

Answer Source

Try this:

In Xcode->Open storyboard->Go to attributes inspector->TextView->Alignment->Choose left alignment.

If you want to make it by Code:

//textView.textAlignment = NSTextAlignmentLeft;

or

//[textView setTextAlignment:NSTextAlignmentLeft];

self.automaticallyAdjustsScrollViewInsets = false;