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

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -