开发者

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


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

[anImageView setContentMode:UIViewContentModeScaleAspectFit];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜