Wednesday, April 6, 2011

Is it possible to remove the black line which separates the rows in a tablecell?

How can I do this? I want the cells appear like just a collection of items with no separations in the form of lines?

And also how can I make the contentView of a cell go transparent?

From stackoverflow
  • If you use plain style then:
    To remove lines: tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    To make the contentView of a cell go transparent: set backgroundColor = [UIColor clearColor] in anything you can set (tableView, cell, cell.contentView).

0 comments:

Post a Comment