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.
the add code auto resize
>
myview.autoresizingmask=uiviewautoresizingflexiblewidth; myview.autoresizingmask=uiviewautoresizingflexibleheight;
Comments
Post a Comment