UIImageView with stretchableImageWithLeftCapWidth doesn't stretch image

后端 未结 2 795
星月不相逢
星月不相逢 2021-01-05 17:48

I\'m trying to stretch an Image in a UIImageView - but I fail miserably :)

Following setup:

NIB-File with a view and a UIImageView attached to this view.

2条回答
  •  梦谈多话
    2021-01-05 17:50

    Got it... (interesting that this happens often just seconds after asking the question)

    In IB, I had to set the mode in the UIImageView to «Scale to fill» and set the Autoresize-property

    That's what solved the problem...

    Hope that helps somebody ;)

提交回复
热议问题