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.
我有一个关于 UIDatePicker 的问题。是否可以避免选择过去的日期?我的意思是,只选择从今天到接下来的日子,避免选择“过去”。
采用:
[datePicker setMinimumDate:[NSDate date]];
这只会将最小日期设置为当前日期(由 返回[NSDate date])。
[NSDate date]