草庐IT

photoBorder

全部标签

ios - 设备旋转时如何使 UIView 阴影拉伸(stretch)?

在一个自定义的tableview单元格中,我正在绘制一个带有阴影的简单矩形,如下所示:photoBorder=[[[UIViewalloc]initWithFrame:CGRectMake(4,4,self.frame.size.width-8,190)]autorelease];photoBorder.autoresizingMask=UIViewAutoresizingFlexibleWidth;photoBorder.backgroundColor=[UIColorwhiteColor];photoBorder.layer.masksToBounds=NO;photoBorder