0

I have a simple text view (which is inside a scroll view) and for the life of me I cannot make it center the text inside the text view. There is no choice in the inspector to center the text like there is when you use a normal text field. I have tried stuff like:

tell textView to setTextAlignment_(current application's setTextAlignment UITextAlignmentCenter)

But, obviously that fails. How is this done?

Rob Napier
  • 286,113
  • 34
  • 456
  • 610

1 Answers1

0

Try use:

tell textView to setAlignment_(current application's NSTextAlignmentCenter)
YeaTheMans
  • 1,005
  • 8
  • 19