iOS-图片拉伸失真解决办法

[image resizableImageWithCapInsets:UIEdgeInsetMake(imageHeight * 0.5, imageWidth * 0.5,

imageHeight * 0.5 -1, imageWidth * 0.5 - 1) resizingMode:UIIMageResizingModeTile];

[image stretchableImageWithLeftCapWidth:imageWidth * 0.5 topCapHeight:image * 0.5];

点击图片,在右边直接设置水平和竖直拉伸

可以给UIImage创建分类