在我的iPhone应用程序中,我需要在图像视图中设置图像。如何设置相对于原始图像大小比例的UIimageview宽度
图像视图高度始终为100像素。
we need to set the width of the image view with respect to the original image scale ratio.
即图像的每假设宽度X高度为300x400(原始)(4×3)
我们显示的图像视图的图像尺寸将是为75x100
宽X高的图像是512x512(原创)(1x1)
我们显示的图像视图的图像尺寸将图像的100X100
宽度X高度128×256(原始)(1×2)
我们显示的图像视图的图像尺寸将是50×
in all those cases image view height 100pixel should be same, but the width need to varie with respect to the image ratio.
和FIN盟友图像视图应在视图中心
如何实现它