获取& quot; uitextview"的编写语言苹果手机? [英] Get writing language of "uitextview" iphone?
本文介绍了获取& quot; uitextview"的编写语言苹果手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何获得uitextview的书写语言? 或者 我怎么知道uitextview在当前状态是从右到左还是从左到右?
How can i get writing language of uitextview? or how can i know uitextview is right to left or left to right in current state?
推荐答案
[textView baseWritingDirectionForPosition:[textView beginningOfDocument] inDirection:UITextStorageDirectionForward] == UITextWritingDirectionRightToLeft
如果UITextView
是从右到左,则应返回true,否则返回false.
Should return true if the UITextView
is right-to-left, and false otherwise.
Further documentation can be found here, if you need it!
这篇关于获取& quot; uitextview"的编写语言苹果手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文