I just started using Auto Layout for my upcoming projects. I created an UIImageView inside a UIScrollView like shown in the image below:
Auto Layout works as expected and positions the UImageView correctly after rotation. My problem is that I want the UIImageView to stretch in Landscape Mode so that it fills the whole width. How can I do that? At the moment it has the same size as in Portrait Mode.
When I place the UIImageView directly in the UIViewControllers View without using an UIScrollView it stretches correctly. Why is that? I would be happy for some hints.
I am using the following constraints (Leading and Trailing Space are equal 0):