0
爲的UIColor類狀態的方法colorWithPatternImage的文檔:的UIColor colorWithPatternImage
在拉絲,在圖案顏色的圖像平鋪根據需要以覆蓋給定區域。
這意味着如果對象的框架大於與colorWithPatternImage方法一起使用的圖像的大小,則圖像平鋪以適合。不過,我希望它能夠被拉伸。這可能嗎?如何做到這一點?
爲的UIColor類狀態的方法colorWithPatternImage的文檔:的UIColor colorWithPatternImage
在拉絲,在圖案顏色的圖像平鋪根據需要以覆蓋給定區域。
這意味着如果對象的框架大於與colorWithPatternImage方法一起使用的圖像的大小,則圖像平鋪以適合。不過,我希望它能夠被拉伸。這可能嗎?如何做到這一點?
使用的UIColor與colorWithPatternImage不會讓你的UIImage拉伸 如果你想使用stretchableImageWithLeftCapWidth:topCapHeight:嘗試UIViewImage