Language Based Scanning in a UILabel
I'm developing a twitter client (YES, another one) for the RTL languages.
How can a UILabel alignment be configured depe开发者_C百科nding on the language of a tweet. So if language of the tweet is Arabic for example the alignment would be UITextAlignmetRight and vice versa.
Simply set the textAlignment property of the UILabel in code:
label.textAlignment = UITextAlignmentRight;
精彩评论