views:

47

answers:

2

Hi Guys,

Perhaps it's very simple but I can't figure it out.

I have a custom TableviewCell. I'm using iPhone SDK 4. I am creating just one row in table view (Grouped) but sadly that table view has double border on top and all other sides have normal single border. I must say that I noticed that when upgraded to Xcode 3.2.3 and iPhone SDK 4. This is what I am getting on iphone...

alt text

Does any know what I am doing wrong here.

Thanks

A: 

Any updates on this?

Igor
A: 

Check the settings of the tableView in Interface Builder...
Find the Separator attribute... By default it is set to Single Line Etched if you are using a grouped table view.
Change this attribute to Single Line or None to resolve your problem... ;)

However if you are creating the table view programmatically, without Interface Builder, you can resolve adding this line of code in a method like viewDidLoad:

self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 
or  
self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;

Hope can help you!

Regards,
Matteo

Matthew