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]