walli walli - 1 year ago 76
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

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;


//[textView setTextAlignment:NSTextAlignmentLeft];

self.automaticallyAdjustsScrollViewInsets = false;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download