Reputation: 1567
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 http://img267.imageshack.us/img267/9818/img0056k.png
Does any know what I am doing wrong here.
Thanks
Upvotes: 2
Views: 950
Reputation: 3982
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
Upvotes: 4