Reputation: 37
How to edit UITextView
to show the text from the first word and not from the middle of the text in storyboards?
Upvotes: 1
Views: 798
Reputation: 1650
You can set the alignment in the storyboard itself as you can see in attached screenshot.
Upvotes: 0
Reputation: 443
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;
Upvotes: 2
Reputation: 25
Xcode->Open storyboard->Go to attributes inspector->TextView->Alignment->Use fourth option in alignment
Upvotes: 0