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.
当用户从日期选择器中选择特定日期时,我想显示特定的星期几。当用户单击日期按钮时,我想自动选择该选定日期的星期几?
[self.datePicker setDate:[NSDate date] animated:NO];
试试这个,让我知道它是否不起作用。我没试过。希望它有效,快乐编码:)