Tengo un UIImageView
como subview
de UIView
(tamaño de marco 300 x 300). Mi UIImage
sería retrato, paisaje o algunos tamaños extraños. ¿Cómo llené el UIImage
dentro del tamaño de fotograma UIView
sin estirar la imagen a 300 x 300?UIImageView rellenar UIView
El propósito de esto, añadiré otro UIImageView
como borde de la imagen. Por favor ayuda.
Gracias.
intenté utilizar los 2 modos anteriores, mi imagen no cabe en 300 x 300 – RockBaby
ivEditImage = [[UIImageView alloc] initWithImage: imgChoosen]; ivEditImage.frame = vwEditingImage.frame; [ivEditImage setContentMode: UIViewContentModeScaleAspectFill]; – RockBaby
incluso 'UIViewContentModeScaleAspectFit' no lo hace? –