I have already found several questions and answers about this topic but I simply cannot get this to work for me.
The blue rectangle is a UIView which contains the Test Label and Gear image button. The red one is a second UIView.
What I'd like to do is to get the blue bar (which is a UIView) increase in size for larger sized screens, which will result in the scaling of the Label and settings button, while the Red UIView shrink in height so the blue UIView can become larger. So basically the question is, how to proportionally scale the UIViews for different screen sizes.
I have tried using aspect ratio constraints, height constraints (greater than/less than) but I just can't get the desired effect.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…