UIImage的 resizableImageWithCapInsets 可以指定需要拉伸的位置,这个方法很有用,可以减少长短按钮数量 转载于:https://www.cnblogs.com/lixing/p/4208594.html