Printing 如何在控制台中打印图像高度

Printing 如何在控制台中打印图像高度,printing,uiimage,size,Printing,Uiimage,Size,比如说 当我像那样上下滚动漫画时。基本上,我知道如何打印UIImage的高度来计算完美的大小,然后我可以导入到代码中使其完美 print(UImageHere(height)) 图像大小700 x1200 但在应用程序中 1200 make the longest,not perfect就是这样一个例子,它可以更快地导入代码,从而使一切变得完美。但不确定它是否有这样的存在 print(UImageHere(height)) 您应该能够使用UIImageView.bounds.height

比如说

当我像那样上下滚动漫画时。基本上,我知道如何打印UIImage的高度来计算完美的大小,然后我可以导入到代码中使其完美

print(UImageHere(height))
图像大小700 x1200

但在应用程序中

1200 make the longest,not perfect就是这样一个例子,它可以更快地导入代码,从而使一切变得完美。但不确定它是否有这样的存在

print(UImageHere(height))

您应该能够使用UIImageView.bounds.height