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

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -