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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -