Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen I am scrolling horizontally, my cell values are being changed
    primarykey
    data
    text
    <p>I am working with mdspreadview cell: <a href="https://github.com/mochidev/MDSpreadView" rel="nofollow noreferrer">https://github.com/mochidev/MDSpreadView</a> from above link.</p> <p>When I am scrolling horizontally, <code>cellforrowatindexpath</code> method is getting called and my cell value changes.</p> <pre><code> - (MDSpreadViewCell *)spreadView:(MDSpreadView *)aSpreadView cellForRowAtIndexPath:(MDIndexPath *)rowPath forColumnAtIndexPath:(MDIndexPath *)columnPath { static NSString *cellIdentifier = @"Cell"; MDSpreadViewCell *cell = [aSpreadView dequeueReusableCellWithIdentifier:cellIdentifier]; if (cell == nil) { cell = [[[MDSpreadViewCell alloc] initWithStyle:MDSpreadViewCellStyleDefault reuseIdentifier:cellIdentifier] autorelease]; } switch (columnPath.row) { case 0: { radiobutton=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 10, 20)]; [radiobutton setImage:[UIImage imageNamed:@"radio_button_off.png"] forState:UIControlStateNormal]; [radiobutton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; radiobutton.titleLabel.font =[UIFont systemFontOfSize:14.f]; cell.backgroundColor=[UIColor blackColor]; [cell addSubview:radiobutton]; break; } case 1: cell.textLabel.text=[self.timearray objectAtIndex:rowPath.column]; break; case 2: cell.textLabel.text=[self.firstnamearray objectAtIndex:rowPath.column]; break; case 3: cell.textLabel.text=[self.lastnamearray objectAtIndex:rowPath.column]; break; case 4: cell.textLabel.text=[self.agearray objectAtIndex:rowPath.column]; break; case 5: cell.textLabel.text=[self.reasonarray objectAtIndex:rowPath.column]; break; case 6: cell.textLabel.text=[self.statusarray objectAtIndex:rowPath.column]; default: break; } NSLog(@"%d,%d,%d,%d,%d,%d",rowPath.section,columnPath.section,rowPath.row,columnPath.row,rowPath.column,columnPath.column); return cell; } - (void)spreadView:(MDSpreadView *)aSpreadView didSelectCellForRowAtIndexPath:(MDIndexPath *)rowPath forColumnAtIndexPath:(MDIndexPath *)columnPath { [spreadView deselectCellForRowAtIndexPath:rowPath forColumnAtIndexPath:columnPath animated:YES]; NSLog(@"Selected %@ x %@", rowPath, columnPath); } </code></pre> <p>When my spread view width is greater than the my view width iam getting this problem.</p> <p>Then my problem is when view is loaded my button is added to first column and 4th column (case 0 and case 4),but i added it to only the first one. Please help me I was struggling for the past few days. Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload