views:

97

answers:

0

Hi,

I have a tableview with custom cells in it one has a UISegmented control in it.

in the cellForRowAtIndexPath method I create the cell and attempt to initialize the segment controller but it doesn't change whats displayed in the cell, what am i missing..

code below.

segcell = [self FRCell]; [segcell setSelectionStyle:UITableViewCellSelectionStyleNone];

if ([myPl.Type isEqualToString:@"GHI"]) { segcell.segment.selectedSegmentIndex = 0; NSLog(@"Gets here GHI"); }

I have tried:

segcell.segment setNeedsDisplay segcell setNeedsDisplay tableview setNeedsDisplay Tableview reloadData

Any Help Appreciated..