【发布时间】:2013-01-16 04:49:01
【问题描述】:
我需要得到一个完全定义的NSDateComponents 实例(即设置了日历、时区和实际日期值等),以用作EKReminder 的StartDateComponents 和DueDateComponents 值。
有很多answers here on SO 解释了如何从 obj-c 中的日历实例执行此操作。以及开源项目doing the same thing。
但是我似乎无法弄清楚如何在 MT 中做同样的事情。 NSCalendar 类不公开任何与 components:fromDate: 选择器相关的方法。
人们是如何处理 MT 中的 DateTime/NSDate -> NSDateComponents 的?
【问题讨论】:
标签: ios xamarin.ios