开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜