Right now if you type something in a right to left language and tap and hold, the copy and paste menu will have an extra option for changing the writing direction form "left to right" to "right to left".
I want to set this option in the code so that my UITextView writing direction would be right to left by default.
Does anyone know how I can do that. I searched all over the web and SDK and tried everything with no luck. I would be grateful if anyone can help.
An object that displays an editable text area in your interface.
Set the Boolean variable to true, which disables editing in the text field.
check may be this will help you.
setTextAlignment:UITextAlignmentRight;
Hope this can help
divide the text in the UITextView by line,and change NSString from "left to right" to "right to left" is quite simple
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With