This is how I have set subview height in regards to superview.I have set constraints for
View.height = 0.5xheight
View.height = 0.25xheight
Just go to
Main.Storyboard and select your size class, here
View as: iPad Pro (wR hR) and adjust size of your subview and update the constraints.