UIButton width is 50% of the width of the UIView iOS

I am new to storyboard environments.

How to set width to UIButton's50% of width UIView'susing AutoLayout constraints in storyboard in Xcode6

Can someone tell me how to implement this?

+4
source share
1 answer
  • select button and supervisor

  1. to conclude

  1. select restrictions

  1. Flip both elements and set the multiplier to 0.5

  1. select only the button and set the horizontal alignment

Done!

I recommend using the freemasonry library from github. https://github.com/Masonry/Masonry

+8
source

All Articles