Welcome, Guest
Username Password: Remember me

SCDateCell value gone after scrolling in TableView
(1 viewing) (1) Guest

TOPIC: SCDateCell value gone after scrolling in TableView

SCDateCell value gone after scrolling in TableView 1 year, 9 months ago #1

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
  • magegu
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 1

Re: SCDateCell value gone after scrolling in TableView 1 year, 9 months ago #2

Hey Martin-

Thank you very much for reporting this. We've discovered a bug in SCDateCell when it's bound to a key and the initial value is nil. We will send you an updated fixed version in a few hours.

BTW, you should use this method to initialize a key-bound SCDateCell:

cellWithText:withBoundKey:withDateValue:


Thanks again.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCDateCell value gone after scrolling in TableView 1 year, 9 months ago #3

Hi again Martin:

We've fixed the bug and sent you the updated version. Please tell us if you're having any more issues. Thanks.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCDateCell value gone after scrolling in TableView 1 year, 7 months ago #4

Hi,

I'm having the same problem. I have the "Sensible TableView v1.6 BETA1" version. Here is my code:

 
SCDateCell *kaskoDateCell = [SCDateCell cellWithText:@"Poliçe Bitiş Tarihi"
withBoundObject:mycar
withPropertyName:@"KPbitistarihi"];
[kaskoDateCell.dateFormatter setDateStyle:NSDateFormatterMediumStyle];
[kaskoDateCell.datePicker setDatePickerMode:UIDatePickerModeDate];
[section3 addCell:kaskoDateCell];
 


Thanks..
  • leweo
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0

Re: SCDateCell value gone after scrolling in TableView 1 year, 7 months ago #5

Fixed in our 1.6 upcoming release. Will send you our latest RC version right away. Thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCDateCell value gone after scrolling in TableView 1 year, 7 months ago #6

Unfortunately it didn't solve my problem From the zipped file you send, another folder came up with name "Sensible TableView v1.5.9 2". Maybe you send the wrong folder? I hope we can figure this out. Thanks...
  • leweo
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Time to create page: 1.05 seconds