None of this seemed useful to me; I have a custom cell defined in xib with graphics against the left edge (20 pixels on the iPhone), looks great on the iPhone. But on the iPad, the graphics overlapped the left grouped section border! To fix this, I set the output to limit the horizontal space (leading) to the image, and then changed it in the code for the UITableViewCell subclass:
- (void)setFrame:(CGRect)frame { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { self.leadingSpaceConstraint.constant = 40; } [super setFrame:frame]; }
And I tried the number until the gap was right. :)
I understand that setFrame: may not have been the perfect place for this code, but it worked, so it stayed.
source share