Christian776
Christian776

Reputation: 156

UITableViewCell width issue using Xcode 6 Beta - using Size Classes

I'm tring to come up with a very simple UITableView using Xcode 6 Size Classes. I'm using Any/Any for width and height and the UITableViewCell has just one UILabel having four Constraints (just for leading/trailing space, there's no Width constaint).Now, when running on iPhone simulator, the label's width seems to be unaffected by the iPhone screen real state.

I'm using Xcode 6 Beta 4. Is this a bug in Xcode6?

app running in iPhone simulator in Portrait mode Size Inspector

Upvotes: 4

Views: 2585

Answers (1)

Nick Podratz
Nick Podratz

Reputation: 682

You need to add a "leading space to container" constraint on both sides while editing the UI in Any/Any or an iPhone-like aspect-ratio. Additionally you could delete the "trailing space to container" constraint.

Upvotes: 3

Related Questions