是否可以使用 iphone sdk 在 textview 中显示两个对齐方式?

发布于 2024-12-13 09:37:25 字数 117 浏览 7 评论 0原文

在我的应用程序中,我需要在文本视图中显示阿拉伯文本和英语文本。阿拉伯语文本应右对齐,英语文本应左对齐。

可以用文本视图吗?我尝试使用网络视图而不是文本视图,并且得到了我需要的东西。但是滚动网页视图非常慢。

In my app i need to show Arabic text and English text in a textview. The Arabic text should be right aligned the English text should be left aligned.

Is it possible with a textview? I have tried using a webview instead of a textview, and I am getting what I need. But scrolling the webview is very slow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小耗子 2024-12-20 09:37:25

您需要为该属性使用相同的名称 selectionString 而不是 selctionString

或者您需要声明属性名称并使其合成:

@synthesize selctionString = selectionString; // Missing "e"

You need to use the same name for the property, selectionString instead of selctionString.

Or you need to declare the property name and make it synthesize:

@synthesize selctionString = selectionString; // Missing "e"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文