hi,
i'm using those two SCDateCells for a Form to send it via HTTP..
dateCell = [SCDateCell cellWithText:@"Date" withBoundKey:@"date" withLabelTextValue:@"test"];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"dd.MM.yyyy"];
dateCell.dateFormatter = dateFormatter;
dateCell.datePicker.datePickerMode = UIDatePickerModeDate;
dateCell.detailViewTitle = @"";
[secondSection addCell:dateCell];
timeCell = [SCDateCell cellWithText:@"Time" withBoundKey:@"time" withValue:nil];
NSDateFormatter *timeFormatter = [[NSDateFormatter alloc] init];
[timeFormatter setDateFormat:@"HH:mm"];
timeCell.dateFormatter = timeFormatter;
timeCell.datePicker.datePickerMode = UIDatePickerModeTime;
timeCell.detailViewTitle = @"";
with SCTextFieldCell everythings working fine, but with Date/Time, the value of the cell is empty again when the Cell was scrolled out of the display.
Even if i stay in the position and just access the value by
[request setPostValue:[[tableViewModel modelKeyValues] valueForKey:@"date"] forKey:@"date"];
its empty in the Http method ..
any suggestion?
cheers