简体   繁体   English

在iPhone中从固定宽度查找UIImage的比例高度

[英]find proportional height of UIImage from fixed width in iphone

Hello my question is very similar to this question 您好我的问题与这个问题非常相似

I am arranging images in a grid manner. 我正在以网格方式排列图像。 this grid has three columns, every column has fixed width of 100px and i want to scale UIImage with this width. 这个网格有三列,每列具有100px的固定宽度,我想用此宽度缩放UIImage。

For better explanation i have attached an image 为了更好的解释,我附了一张图片

在此处输入图片说明

As shown in image i want to find the height. 如图所示,我想找到高度。

我建议您尽可能使用PSCollectionView进行此类显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone:如何动态设置UIImage的大小,宽度,高度和方向? - iPhone:How to dynamically set UIImage size , width , height and orientation? 在iPhone中以固定的图像宽度计算图像高度的标准比例? - Calculate the standard proportion of the image height with fixed image width in iPhone? 如何使用UIimageview和第三个uiimage缩放UIScrollView并覆盖顶部,固定宽度和高度 - How to zoom UIScrollView with UIimageview and a third uiimage as overlay on top with fixed width & height iPhone上的UIImagePickerController照片的宽度/高度比率 - The width/height rate of the photos from UIImagePickerController on iPhone iPhone(/ iPad)上的高度和宽度 - Height and width on iPhone (/iPad) UIImage size.width返回高度? - UIImage size.width returns as height? 获取 UIImage 的大小(字节长度)而不是高度和宽度 - Get size of a UIImage (bytes length) not height and width 具有固定宽度和高度的UILabel - UILabel with fixed width and flexible height iPhone XR的摄像头图像在javascript中的宽度和高度已切换 - IPhone XR , image from camera have width and height switched in javascript iPhone应用程序:通过从用户获取高度和宽度来调整png的大小 - Iphone app: Resize a png by getting Height and Width from user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM