walli walli - 13 days ago 5
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

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;
Comments