proper fill an image larger than screen
- by madcat
what I wanted to achieve here is simply fit the image width to the screen on both orientations and use UIScrollView to just allow scroll vertically to see the whole image.
both viewController and view are created pragmatically.
the image loaded is larger than screen on both width and height.
here is the related code in my viewController:
-…