rotation - iOS Stretching View using Auto Layout in Landscape -


i started using auto layout upcoming projects. created uiimageview inside uiscrollview shown in image below:

uiscrollview uiimageview

auto layout works expected , positions uimageview correctly after rotation. problem want uiimageview stretch in landscape mode fills whole width. how can that? @ moment has same size in portrait mode.

when place uiimageview directly in uiviewcontrollers view without using uiscrollview stretches correctly. why that? happy hints.

i using following constraints (leading , trailing space equal 0): constraints

ok found out using auto layout, uiimageview inherits size of uiimage. if change image on rotation uiimageview resizes properly.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -