简体   繁体   English

带有 RTL 的 Chromecast 按钮位置错误(从右到左)

[英]Wrong Chromecast buttons position with RTL (right-to-left)

I am using googlecast example .我正在使用 googlecast示例

When I show GCKUIExpandedMediaControlsViewController, all the buttons are in the correct position.当我显示 GCKUIExpandedMediaControlsViewController 时,所有按钮都在正确的位置。

在此处输入图像描述

But when I use this part of the code, the buttons overlap each other.但是当我使用这部分代码时,按钮会相互重叠。

UIView.appearance().semanticContentAttribute = .forceRightToLeft

I don't know if this is important, but the language in the iPhone settings - English.我不知道这是否重要,但 iPhone 设置中的语言 - 英语。

This is the result that I get这是我得到的结果

在此处输入图像描述

在此处输入图像描述

We don't support RTL well now.我们现在不太支持 RTL。 You can file a feature request here https://developers.google.com/cast/support您可以在此处提交功能请求https://developers.google.com/cast/support

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM