I would like to set up margins or paddings for UITableView cells imageView, how could I do that? With heightForRowAtIndexPath I can only set rows height. And it
heightForRowAtIndexPath
This works on iOS 7:
- (void)layoutSubviews { [super layoutSubviews]; CGRect imageViewFrame = self.imageView.frame; imageViewFrame.origin.x = 10; imageViewFrame.origin.y += 5; imageViewFrame.size.height -= 10; imageViewFrame.size.width -= 10; self.imageView.frame = imageViewFrame; }