I have a View Controller I'm reusing to edit individual objects (NSString, NSNumber, NSDate) in a previous View Controller's TableView. I'm loosely basing this off of the EditingViewController in Apple's SQLiteBooks sample project. the datePicker is instantiated in the nib file.
The issue here is it works fine & dandy for the first date I set with it. BUT, when called again on a 2nd date it will correctly display the next date I'm editing in its tumblers(?) when it loads, however, the highlighted (blue) month, day & year are those from when the picker was first displayed BEFORE the first edit. How can I set those highlighted values to the initial value of the 2nd date object or reset the whole UIdatePicker instance.
2nd related question (bonus points ;-) as I struggle to wrap my head around Cocoa: why, in the SQLiteBooks example is there no @property or @synthesize statements for the datePicker declared in EditingVewController.h? Or have I overlooked the obvious? Thanks!
Edit: After some experimentation with other apps using UIDatePickers it appears that for whatever reason UIDatePicker when used in the Date mode will highlight the current month, day & year even if you're editing an date from say 1776. HOW can we turn this behavior off?