2012-11-17 24 views

回答

2
[textView baseWritingDirectionForPosition:[textView beginningOfDocument] inDirection:UITextStorageDirectionForward] == UITextWritingDirectionRightToLeft 

如果UITextView是從右到左,則返回true,否則返回false。

如果您需要,可以找到更多文檔here

+0

非常有趣,男人!,非常感謝.... –

0

這一個工作更好地爲我

[NSLocale characterDirectionForLanguage:self.textView.textInputMode.primaryLanguage] == NSLocaleLanguageDirectionRightToLeft