How to remove seprator in tableView?

Posted by AJPatel on Stack Overflow See other posts from Stack Overflow or by AJPatel
Published on 2010-12-25T09:30:54Z Indexed on 2010/12/25 13:54 UTC
Read the original article Hit count: 154

Filed under:

i make one tableview in which i add button type cell using custom cell.....looks good but when their is less cell in tableview at that time seprator looks very bad...... in design so thier is any solution than tell me............ i try to remove seprator from design but it not work.... Thanks in advance..........

- (void)viewDidLoad {
    self.navigationItem.title = @"My List";

    self.tblView.separatorStyle = UITableViewCellSeparatorStyleNone;

    [[self tableView] setRowHeight:70];
    [[self tableView] setBackgroundColor:[UIColor blackColor]];

    Helath_ndroidAppDelegate *appDeleg = (Helath_ndroidAppDelegate *)[[UIApplication sharedApplication] delegate];
     NSMutableArray *temp1 =[[NSMutableArray alloc] init];
     appDeleg.recipCategoryFromDatabase = temp1;
    [temp1 release];

    dataBase *objData = [[[dataBase alloc] init] autorelease];
    [objData selectrecepFromDatabase];



[[self tableView] setSeparatorStyle:UITableViewCellSeparatorStyleSingleLineEtched];

    [super viewDidLoad];
}

© Stack Overflow or respective owner

Related posts about iphone