1

I used interface builder and changed my tableview style as grouped and separator as none.

I was able to see the change in the display style which is grouped right now. But the separator change is not getting reflected.

How to remove the separator?

BenMorel
  • 31,815
  • 47
  • 169
  • 296
thndrkiss
  • 4,375
  • 7
  • 54
  • 95
  • 1
    possible duplicate of http://stackoverflow.com/questions/286332/how-do-i-remove-the-borders-of-a-uitableview – Warrior Apr 01 '10 at 10:58

2 Answers2

3

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]];
}
Sagar Kothari
  • 24,010
  • 48
  • 159
  • 232
0

[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];

user1760527
  • 1,114
  • 9
  • 14