Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我正在用希伯来语显示一些文本。当它在以前的 iOS 版本中时,它工作正常。当我升级到 iOS 9.1。它是从左到右显示的。但它应该从右到左。我该如何解决这个问题?
从 iOS 9 开始,文本方向会自动设置。只需确保您的 UILable 或 UITextView 文本对齐设置为NSTextAlignmentNatural。如果您使用的是故事板或 xib。您可以设置文本方向,如下图所示。