Dynamically changing the items on the screen

You must Login before you can answer or comment on any questions.

I am wanting to put change the size of a item such a pictureView or a textLabel etc depending on the size of the screen.

I know i can use

height: 100,
width: 100,
But i am wanting something more along the lines of
height: 20%,
width: 20%,
Like you would do in CSS. Is this possible??

thanks in advance.

1 Answer

Accepted Answer

Dont know if i understood you... want to use % with height and width? thats achived by using them inside " "

height : "70%",
width : "20%"

Your Answer

Think you can help? Login to answer this question!