开发者

how can i reduce the size of image in imageview

开发者 https://www.devze.com 2023-01-12 06:16 出处:网络
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 correct

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


Assuming you're setting up the new frame of your image view correctly, try this:

[anImageView setContentMode:UIViewContentModeScaleAspectFit];
0

精彩评论

暂无评论...
验证码 换一张
取 消