views:

55

answers:

1

Hi, I used interface builder and changed my tableview style as grouped and seperator as none. I was able to see the change in the display style which is grouped right now. But The seperator change is not getting reflected. Kindly help me how to remove the seperator.

+1  A: 

Ok - Just do this.

If you have rootViewController, in viewDidLoad method - just place following line. ( Default view controller in "Navigation based application")

Whatever view controller you have to place following code.

- (void)viewDidLoad
{
    [super viewDidLoad];
    // if it your view controller extends - UITableViewController
    [self.tableView setSeparatorColor:[UIColor clearColor]];
        // or 
        // your placed tableVCtr on .xib & have datasource & delegate & table connections
        [mytableVCtr setSeparatorColor:[UIColor clearColor]];
}
sugar
thanks for the help. I actually referred the link sent by warrior.
thndrkiss