Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding UITableView separator behind the contentView(cell.imageView)?

in ios 7 i am using cell built in image view, it behind cell image view but i am try a layout subviews in uitableview custom cell like that

- (void)layoutSubviews {
[super layoutSubviews];
self.imageView.frame = CGRectMake(5.0f , 5.0f, 50.0f, 50.0f);
self.imageView.contentMode = UIViewContentModeScaleAspectFit;
self.textLabel.frame = CGRectMake(60.0f, self.textLabel.frame.origin.y,   self.textLabel.frame.size.width, self.textLabel.frame.size.height);
}

image view is set correctly but seperator line in imageview side is empty how to seperator line above a imageview or only way to custom imageview

like image 909
sabeer Avatar asked Apr 19 '26 20:04

sabeer


1 Answers

i add the following line in viewdidload

[self.tableviewName setSeparatorInset:UIEdgeInsetsZero];

now seperater line show fully

like image 106
sabeer Avatar answered Apr 21 '26 10:04

sabeer