For some reason when I click inside the UITextView it starts in the middle. I want the caret to be placed at the beginning of the UITextView control.
Asked
Active
Viewed 211 times
0
-
Please provide code with what you have tried. – memmons Sep 21 '13 at 18:14
-
http://stackoverflow.com/questions/4180263/moving-the-cursor-to-the-beginning-of-uitextfield – Kyle Fang Sep 21 '13 at 18:25
-
I have not tried anything! I assume that when I create a UITextView then the cursor should start at the beginning. – john doe Sep 21 '13 at 19:03
1 Answers
0
It sounds like text alignment is set to center instead of left-justified. If you created the UITextView in a nib, open the nib in Xcode, select the UITextView, select the attributes inspector in the right column of Xcode, and scroll down to the Alignment setting. You will see a control with three segments. Make sure the left segment (left-justified) is selected.

bneely
- 9,083
- 4
- 38
- 46