UIDatePicker(非格里高利历) [英] UIDatePicker for a Non-Gregorian calendar

查看:85
本文介绍了UIDatePicker(非格里高利历)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用了UIDatePicker,这对于公历来说效果很好。
但是我想在DatePicker中使用Non-Gregorian日历,但我没有成功!
我需要它来完成从非格里高里历到格里高里历的转换,所以无论iPhone的语言环境如何,它都必须工作相同。

I am using UIDatePicker in my App, which works fine for a Gregorian calendar. But I want to use a Non-Gregorian calendar with the DatePicker, which I didn't succeed to do it! I need it to do some conversion from Non-Gregorian to Gregorian dates, so it must work the same whatever the iPhone 'Locales' are.

请可以您回答了这个问题!

Please can you answer this!

我们非常感谢您的帮助,

Your help is really appreciated,

推荐答案

您是否尝试过将 UIDatePicker calendar 属性设置为非格雷戈里日历?

Did you try setting the UIDatePicker's calendar property to a non-Gregorian calendar?

这篇关于UIDatePicker(非格里高利历)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆