I have an array of images, these images can be taken from camera or photo library, so it can be on different sizes.
The images are displayed as thumbnails like on photo library, and my goal is to show one image on screen with a screen related size once it is tapped, then i can move to the next image with a gesture, also as the photo library.
My main problem is i don't know the size of an image view to fit the images on screen, i tried to scale them, but as i can have several sizes of images i can't find a pattern to scale (images of different sizes should be scaled differentially).
So, how can scale these images to fit on screen proportionally to it's size(again, like photo library)?