- CGFloat top = 25;
- CGFloat bottom = 25 ;
- CGFloat left = 10;
- CGFloat right = 10;
- UIEdgeInsets insets = UIEdgeInsetsMake(top, left, bottom, right);
- image = [image resizableImageWithCapInsets:insets];
类似9patch效果的iOS图片拉伸
原文:http://www.cnblogs.com/JerryBaxia/p/4984796.html