Question

I'm currently working on an app which is like a photo gallery. It supports orientations too. The UIImageView which contains the UIImage, is in UIViewContentModeScaleAspectFit. When I change the orientation of the device, some part of the UIImage gets displayed on the part of the view which is not a part of the aspect fit region.Any ideas to tackle it??

Was it helpful?

Solution

I just got similar kind of problem while using zooming effect. After changing the orientation of device while the image is zoomed in, it overlaps the imageView. Try to zoom out the image just after changing the orientation. That worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top