J W
J W

Reputation: 878

Custom UITableViewCell width for all orientations

When you create a custom UITableViewCell, how do you know what the width should be if the app for the iPad can support all orientations. I'd like to lay my information out in IB but I don't know if I make the cell's width the width of when it's in Portrait or Landscape. Thanks.

Upvotes: 0

Views: 391

Answers (1)

matt
matt

Reputation: 535989

You don't need to know this. Use the Size inspector to lay the subviews out with resizing "springs and struts" so that they work regardless of the cell's width (or, for that matter, height).

Upvotes: 2

Related Questions