Ios – How to set a constraint using percentage

autolayoutios

Just a very direct question, but we had spent many hours trying to find a working solution but faild.

In Xcode, storyboard, how to set a constraint so one view can be located 30% of total window height from the top of the superview? And we need it to be that way for ALL supported iOS devices of all orientations.

Please see my illustration attached.enter image description here

Best Solution

I demonstrate this below - you just have to change the value of multiplier. enter image description hereenter image description here

enter image description here