iOS 图片拉伸

278 阅读1分钟
UIImage *image = [UIImage imageNamed:@"qipao-green-left"];
UIImage *newImage = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];