I know that iPhone SDK can set a color to the TableView separator like this:
myTableView.style = UITableViewStylePlain;
myTableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
myTableView.separatorColor = [UIColor blackColor];
Is there any way to set gradient color to separator ? Thanks…
You can make the separator style
UITableViewCellSeparatorStyleNoneand apply a one point wide line to the bottom of each cell, which is a gradient.The only problem is that it might look odd on tableviews with fewer cells than fit on the screen when the table view has a plain style, but I don’t know how to fix that.