我已将所有子视图设置为基于self.view
。在设备轮换上自动调整子视图的大小
EG:UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,(self.view.frame.size.width-20),(self.view.frame.size.height-90))];
然而当视图旋转(shouldRotateToDeviceOrientation
或其他)的意见都保持相同的尺寸。我怎样才能让他们改变形状以适应?我可以自动执行此操作吗?
感谢