rotation - iOS Stretching View using Auto Layout in Landscape -
i started using auto layout upcoming projects. created uiimageview inside uiscrollview shown in image below:
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):
ok found out using auto layout, uiimageview inherits size of uiimage. if change image on rotation uiimageview resizes properly.
Comments
Post a Comment