I am trying to display images on the iPhone in the same way that the Photo app does. It seems to be able to dynamically select UIViewContentModeScaleAspectFit or UIViewContentModeScaleAspectFill depending on what is appropriate for the image. Where possible I would like images to appear full screen but if not then I would like them to appear UIViewContentModeScaleAspectFit
I am looking to create a system which on signup will create a subdomain on my website for the users account area.
When you have an image check the size of the image, and then have a test or something.
ReplyDeleteif (imageSize > screenSize){
imageView.contentMode = UIViewContentModeScaleAspect..
}else{
imageView.contentMode = UIViewContentModeScaleAspect...
}
Hope this helps!
Tams