All,
This seems like such a simple thing, but I cannot find the * correct method to create a UIDatePicker in temporary mode and initialize it until a certain time. I do not need a date - just the time (think about the alarm). I created an NSDate object:
NSDate * date = [[NSDate alloc] initWithTimeIntervalSinceReferenceDate: (NSTimeInterval) delta];
pickerView = [[UIDatePicker alloc] init];
pickerView.datePickerMode = UIDatePickerModeTime;
[pickerView setDate:date];
and in the first line, the interval (delta) is zero. It displays 7:00 PM.
It should be so simple that I will miss it, but I canโt find the right path - anyone?
Thank you in advance!
: bp:
* Yes, I looked, but apparently not in the right places: (
source
share