1
即時通訊目前與編輯核心顯卡獲取的uImage的大小時的UIImageView時ContentMode = AspectFill
當我在圖像上得出的UIImage的內容模式設置爲.aspectFill
一個的UIImage我想保留圖像的比例/比例。
伊夫嘗試下面的代碼,但它返回.aspectFit值而不是.AspectFill
let imageSize = AVMakeRect(aspectRatio: (mainImageView.image?.size)!, insideRect: mainImageView.frame)
任何幫助,將不勝感激
托馬斯
非常感謝你 – Tom