UIImageView实现部分区域拉伸

UIImage *image = kImage(@"mtr_achimv");
image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(58,40,30,90) resizingMode:UIImageResizingModeStretch];

其中被UIEdgeInsetsMake包围的区域会被拉伸

你可能感兴趣的:(UIImageView实现部分区域拉伸)