walli walli - 3 months ago 18
Objective-C Question

UITextView starts in the middle of the text

How to edit

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

enter image description here


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;


//[textView setTextAlignment:NSTextAlignmentLeft];

self.automaticallyAdjustsScrollViewInsets = false;