Zigglzworth
Zigglzworth

Reputation: 6803

ios / xcode Make Text Writing Direction Right to Left

Hi I'm trying to write a string in Xcode from right to left but can't find out how to do this. The apple documentation says this shortcut works: ⌃⌥⌘⇠ but it doesn't work for me.

Does anyone know how this is done?

Thanks.

Upvotes: 3

Views: 2622

Answers (3)

user1432813
user1432813

Reputation: 162

Are you on the most up to date version of Xcode, if not update and then try. If that is not helping find the date of the documentation. It is at the bottom of the page in the developer area.

Hope what helps!

Upvotes: 0

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 39978

Here is the screen shot.......

enter image description here

Upvotes: 3

Karoly S
Karoly S

Reputation: 3258

The answer here might be what you're looking for?

https://stackoverflow.com/a/6505055/812715

The basic idea is to add an invisible uni-code character that enables right to left text direction.

Here is a summary of what is said: RIGHT-TO-LEFT EMBEDDING Unicode : 202B UTF8 : E2 80 AB

To actually implement it: uiTextView.text = [NSString stringWithFormat:@"\u202B%@",textString];

Hope that helps!

Upvotes: 2

Related Questions