I’m making a slide show where the images are different sizes. Right now the images get stretched out to fit into the image vue. Is there a way to get the dim of the images, then re=size the imagevue? or maybe another way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want to set the UIViewContentMode on your UIImageView(s).
Like this:
myImageView.contentMode = UIViewContentModeScaleAspectFitLook at the docs to determine which one to use (http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html)