开发者

Language Based Scanning in a UILabel

开发者 https://www.devze.com 2022-12-09 04:51 出处:网络
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 A

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消