views:

2006

answers:

3

By default there is a single line separator in uitableview.

But I want to put my customized line as a separator.

Is it possible ? How ?

Thanks in advance for helping me.

+2  A: 

I dont know if this can be done "automatically" with some setting. But a suggestion would be to set the line separator as none, and in the borders of your cells actually draw your line separator that you want..

Daniel
Excellent one. Thanks.
sugar
+2  A: 

If you want to do more than change the color of the seperator using the seperatorColor property of the UITableView then you could set the seperatorStyle property to UITableViewCellSeperatorStyleNone and then either:

For example, if your table currently displays 5 rows you could update it two display 9 rows and the rows at index 1, 3, 5, 7 would be seperator cells.

See Subclassing UITableViewCell in the Table View Programming Guide for more information on how to create custom UITableViewCells.

Daniel Richardson
A great answer. Thank you very much. I understand. Actually I already know about customizing cell. I thought that there might be a way to customize separator programatically.
sugar
A: 

great it works :)

Ant-