Ok, I've done a lot of Googling, but I must be getting something wrong!
I an writing an iPad-specific version of our iPhone application, so copying/pasting a bunch of code. I mention this, because things are working fine on our live app - this behavior is on our test iPad device running though XCode 3.2.3, OS3.2.1 (7B405)
I have a UIDatePicker added in IB with the following settings :
mode : Date
Locale : English (United Kingdom)
Interval : 5 minutes
Date : 28/07/2010 09:00
No constraints
Timer : 0
So basically just all default. I have attached the Value Changed property to the following method :
As you see, it couldn't be simpler - just log the current selected date. However, as soon as you select a date, the log shows "PICKER OUTPUT : 2010-07-28 09:00:30 +0100" and then no matter how much you change the date, the output is ALWAYS "PICKER OUTPUT : 2010-07-28 09:00:30 +0100"
I stress that this is not causing a crash and has been set up the same as a live iPhone app which currently works perfectly (the date is updated on each value change and I can use that elsewhere.
Can anyone offer a div like me, a little guidance as to why my UIDatePicker...erm doesn't pick dates on the iPad?
Cheers,
P.
I an writing an iPad-specific version of our iPhone application, so copying/pasting a bunch of code. I mention this, because things are working fine on our live app - this behavior is on our test iPad device running though XCode 3.2.3, OS3.2.1 (7B405)
I have a UIDatePicker added in IB with the following settings :
mode : Date
Locale : English (United Kingdom)
Interval : 5 minutes
Date : 28/07/2010 09:00
No constraints
Timer : 0
So basically just all default. I have attached the Value Changed property to the following method :
Code:
-(IBAction)handleDOBselect:(id)sender {
NSLog(@"PICKER OUTPUT : %@", [(UIDatePicker *)sender date]);
}
As you see, it couldn't be simpler - just log the current selected date. However, as soon as you select a date, the log shows "PICKER OUTPUT : 2010-07-28 09:00:30 +0100" and then no matter how much you change the date, the output is ALWAYS "PICKER OUTPUT : 2010-07-28 09:00:30 +0100"
I stress that this is not causing a crash and has been set up the same as a live iPhone app which currently works perfectly (the date is updated on each value change and I can use that elsewhere.
Can anyone offer a div like me, a little guidance as to why my UIDatePicker...erm doesn't pick dates on the iPad?
Cheers,
P.