Xcode auto layout buttons not resizing -


i have looked @ many tutorials , can't seem buttons resize , layout using xcode 6 auto layout. tutorials make sense use views examples. trying build universal soundboard app buttons arranged in attached picture. tried putting buttons in 1 view container still no luck. missing? muchenter image description here

  1. select button want constraint on, , command click it's parent view.
  2. next, select add new constraint (at bottom of xcode), click "equal widths", click add constraint.

add constrint

  1. select object.
  2. double-click on constraint rectangle (not obvious! "edit" takes somewhere else)

enter image description here

  1. then @ right hand side of xcode attribute inspector should come up:

enter image description here

  1. at multiplier property can make ratio or decimal of percentage value want. if want button 1 fourth of it's parent view, set multiplier 1:4.

this might not ideal answer, it's best can offer. hope helps!! luck!


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -