I have an application that reads some strings and displays them in some UILabels, but these strings are not from one language so I need to be able to set the alignment of the label to right if the string is from a RTL language, and to left otherwise.
So is there a direct way to accomplish that, and if not what's the best way to get the language's direction from a string. I'm thinking of checking the first X characters of the string and see what is the larger percentage of the LTR and RTL characters to set the alignment of the label according to it. Is this a good solution and if so where could I find a table that shows what are the unicodes that belongs to LTR characters and what those for RTL.