osx - Flexible width button not taking all available space -


i'm trying make modifications layout of trackmix app shown in creating first mac app.

trackmix layout

i wanted "mute" button take 160px or less. equivalent css rule width: 100%; max-width: 160px; margin: 0 auto;. i'm not sure how achieve in interface builder or in code. here's have far

my layout

while 71 pixels indeed less 160px. there way make button take available space?

this working me:

enter image description here

i have added center constraint + leading , tailing edge constraint parent container. i've set leading/tailing constraint priority 250 because need breakable.

enter image description here


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -