2
votes

I've a UITableViewCell with custom headerView, footerView and ContentView. On iPhone (devices & simulator) renders fine, and the width of contentView adjust to the cell perfectly. But on iPad (booth device / simulator) the contentView is smaller than the UITableViewCell and shows a left and right margins. HeaderView and footerView adjust right to screen and UITableViewCell, only the contentView has this issue,

how can I resize the contentView to adjust equal than header and footer view? I've tried with autoresizing mask for flexible width without any result...

Thanks in advance,

1

1 Answers

0
votes

Have you tried setting the frame of the contentView to the width of the UITableViewCell manually?

contentView.frame = CGRectMake(0, 0, cell.frame.size.width, contentView.frame.size.height);