自动旋转问题
答
实现包含后台视图控制器的方法
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
。查询此ViewController上的interfaceOrientation属性以找出当前的方向,并根据值(UIInterfaceOrientation类型)设置背景。
+0
谢谢你的工作 – Leon
你在代码中编写了你的UIView-Subclass还是你正在使用xib? 背景颜色有多不同?它是否拉伸,是否有白色的边框,有点相似或完全不同? 如果您在横向模式下加载视图,或者刚旋转之后,您的视图是否也会有所不同? – thomas