为什么 .automatic 风格的 UIDatePicker 没有被本地化?

问题描述 投票:0回答:0

我的设备语言是阿拉伯语。我想使用英语选择器。我将语言环境应用于日期选择器。

    datePicker.locale = Locale(identifier: "en")
    datePicker.calendarstrong text.locale = Locale(identifier: "en")

然后,虽然月份是英文的,但日子没有被本地化。有没有办法用英语过日子? (问题出在 iOS 15 中,在 iOS 16 中是正确的)

enter image description here

ios swift localization uidatepicker
© www.soinside.com 2019 - 2024. All rights reserved.