xcode - ios storyboard place a view to right of the middle of superview -
search bit not find solution. suppose have label , text field. want textfield aligned 10 pixel right of middle of superview having width of half of superview - 20 pixel. i.e. 10 px gap in both side. how can achieve in storyboard? possible or have write code that? label half of superview - 20 px width. left aligned. 10 px left gap.
if understand correctly, want both views having same width?
|-10-[uilabel]-20-[uitextfield]-10-|
then 1 way go create constraints
- leading margin
uilabel
- horizontal spacing between
uilabel
,uitextfield
- trailing margin
uitextfield
- same width of
uilabel
,uitextfield