简体   繁体   中英

how can i reduce the size of image in imageview

hi i am new to iphone. what i am doing is displaying 20 images as grid and selected image is diaplyed as full image in imageview. when i rotate the simulator to landscape image is not adjusted correctly in image view. i am trying by changing the position of image but no use. now what i need is reduce the size of selected image size in landscape mode how can i done this pls help me. thank u

假设您正确设置了图像视图的新框架,请尝试以下操作:

[anImageView setContentMode:UIViewContentModeScaleAspectFit];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM