UIView中有个属性contentStretch属性,以CGRect的属性来指定伸缩范围。 origin.x origin.y 指定伸缩坐标 size.width size.height 指定伸缩范围