如何在iOS中制作单个UIViewController从右到左(RTL)?

问题描述 投票:-2回答:1

我需要在我的应用程序中创建一个视图控制器RTL。我找到了一种方法,使整个应用程序RTL,但我不希望标签栏和其他视图控制器成为RTL。任何解决方案都将非常感激。

ios swift xcode uiviewcontroller right-to-left
1个回答
1
投票

在视图控制器中为semanticContentAttribute设置view为:

view.semanticContentAttribute = .forceRightToLeft
© www.soinside.com 2019 - 2024. All rights reserved.