ios - How to make a superview resize automatically same size and coordinate with its subview? -


i have uiview contains uiimageview. want make uiview same size , same coordinate uiimageview. how can it?

to auto resize programatically.

at first uncheck autolayout here screen shot.

enter image description here

the add code auto resize

>

         myview.autoresizingmask=uiviewautoresizingflexiblewidth;         myview.autoresizingmask=uiviewautoresizingflexibleheight; 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -