I've been trying to figure out how to add constraints for different class sizes for 4 days now and still cant figure this out. Here's my problem. I need different constraints for wC hR and wR hR, iPhone and iPad. If I set constraints for C R I get no errors. As soon as I set constraints for R R xCode shows no errors for that as well but the constraints for C R are now messed up. If I fix C R then R R shows errors. I can go back and forth all day long but corrections in either size class messes up the other. When I look at the preview in assistant editor the only preview to display correctly is the one that corresponds to the device my story board displayed in. I find it hard to believe Im doing something wrong because once I set constraints for both size classes and despite the errors in one or the other the layouts work correctly on the simulator and all the devices.
I've been through Stack Overflow and the developer forums and see others are having similar problems. I've read through Apple's documentation and watch videos from the WWDC as well s other tutorials on line and youtube but still can't figure out how to add constraints to a size class with causing errors in the others.
As I said, even though I get errors in one size class on the story board and the preview doesn't properly display the layout everything seems works fine on the devices and simulator. So, has anyone had a similar problem, found a way to do all this with out errors, know of a tutorial I can look at or could this be a bug in xCode.
Any help would be greatly appreciated.
Glenn
Hi
Perhaps this can help you finding the way.
https://makeapppie.com/2016/09/05/an-introduction-to-size-classes-for-xcode-8/
happy coding