image.png 如上图,因为imageview没有类似button的imageEdgeInsets方法,故要实现类似效果可以选择 1.使用不可点的button 2.使用一个label,设置他的layer的contents填充为cgimage