3 design-patterns uiimageview uiimage ios
我试图将UIImage作为模式.所以,我有一个图像,我想用这个图像填充UIImageView而不拉伸图案.我知道你可以用模式获得UIColor但这不是我想要的.
你可以使用UIImage
模式的方法.
1)(UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets
2)(UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode
最好有1像素宽的图像.
归档时间: |
|
查看次数: |
2021 次 |
最近记录: |