使用CALayer属性backgroundColor,borderColor直接设置layer.contents(to an image),在多个view之间共享contents,伸展小图片到大图片 转载于:https://www.cnblogs.com/wustlj/archive/2012/12/20/2826643.html