UIImage *image = [UIImage imageNamed:@"qipao-green-left"];UIImage *newImage = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];复制代码
本文共 235 字,大约阅读时间需要 1 分钟。
UIImage *image = [UIImage imageNamed:@"qipao-green-left"];UIImage *newImage = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];复制代码
转载于:https://juejin.im/post/5b0283fc6fb9a07ab458ee13