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.
IphoneのUIDatepickerでMaximum datに設定されているTodaysの日付の文字色を「黒」に変更したいのですが??
出来ますか??
ありがとうございました
- (IBAction)pickerValueChanged:(id)sender { dispatch_async(dispatch_get_main_queue(), ^{ UIDatePicker *datePicker = (UIDatePicker *)sender; if ([self.datePicker.date compare:[NSDate date]] == NSOrderedDescending) { datePicker.date = [NSDate date]; } }); }