iOS提供两张方法:

stretchableImageWithLeftCapWidth:topCapHeight (适用iOS2.0~iOS5.0)

resizableImageWithCapInsets:  (适用iOS5.0之后)

stretchableImageWithLeftCapWidth:topCapHeight它只能以1x1的像素进行拉伸。

而resizableImageWithCapInsets可以重复一个区域进行平铺拉伸,而不是1x1像素。

posted on 2014-04-22 15:45  童话DY  阅读(137)  评论(0编辑  收藏  举报