简体   繁体   中英

UIViewContentModeScaleAspectFit with margin

Hello I want to aspectfit an image in a uiimageview but want to also have some padding for tha t image instead of it fitting to width or to height. I also don't want to scale the image because it loses quality if I try to zoom in later.

Any idea? Been looking around and cant find anything.

在图像视图上设置边框宽度,或将图像视图添加为另一个视图的子视图,但带有插入框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM