ios - How to adjust button width based on screen width in Quartz Designer for iPhone -
is there possibility adjust button width based on screen width in origami iphone, expression;
for example: button.width = screen.width-50
i can't add current design image question due low reputation
i tried solve on own below;
add following patches patch library
- button patch
- rendering destination dimensions patch
- math patch
then,
- link pixels wide on rendering destination dimensions first parameter on math patch
- modify second parameter on math patch required value (for example: 50)
- select - (minus) operator on math patch
- link output of math patch width on button patch
Comments
Post a Comment