Reputation: 156
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?
Upvotes: 4
Views: 2585
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