resizableImageWithCapInsets图片拉伸

[[UIImage imageWithName:@""]resizableImageWithCapInsets:UIEdgeInsetsMake(top,left,down,right)

UIEdgeInsetsMake(top,left,down,right) 指定了不拉伸的区域,这个区域重叠显示来填满。

你可能感兴趣的:(resizableImageWithCapInsets图片拉伸)