Reputation: 1778
I have a tableview
in my iPhone project. Each cell of the row is customized with a separate UITableViewCell
.
The custom cell contains an imageview and a label. My row height is 55 and hence my custom table height is also 55. Imageview lies as a background for the cell, so imageview height is also 55. But when i run the project i could see a border around each row, which seems the custom cell is having a rectangular border around its contents.
How could i be able to remove this bounding rectangle. i am working in xcode 4.2.1 and simulator 5.0.
Upvotes: 2
Views: 3469
Reputation: 1778
actually it was due to the image i loaded.. it had a shadow part, which appeared as the white space.. sorry for the trouble. THANK YOU ALL
Upvotes: 0
Reputation: 4251
Is it the cell separator?
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
Upvotes: 2
Reputation: 11839
You need to set the background view of cell-
cell.backgroundView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
Upvotes: 1
Reputation: 8106
its possible that the border you see is the seperator, try to add this line to your code
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
Upvotes: 2