Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以从 datepicker 获取事件名称,例如我选择 12 月 25 日并将圣诞节作为事件名称等。
是的,可以创建这样的功能。您必须使用事件名称创建 NSDictionary 和 Map 日期。每当用户选择任何日期时,然后在 NSDictionary 中查找该日期并获取该日期的事件名称。
这是一种可能的方式。可能还有其他方法,但请注意,没有预定义的控件来实现此功能。