Ios 应自动旋转指针面方向和图像旋转

Ios 应自动旋转指针面方向和图像旋转,ios,ios4,Ios,Ios4,我的应用程序有一个图像作为背景,如果我旋转设备,所有的小部件和旋转,但不是背景图像 我的shouldAutorotateToInterfaceOrientation的实现非常简单: // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface

我的应用程序有一个图像作为背景,如果我旋转设备,所有的小部件和旋转,但不是背景图像

我的
shouldAutorotateToInterfaceOrientation
的实现非常简单:

// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
有什么提示吗

问候,,
Sascha

如果需要自动缩放,则应将图像置于UIImageView中。但我建议两张图片大小适合两个不同的方向,并在代码中在它们之间切换。

该死!我的意思是:背景图像被旋转,但没有缩放。啊,好吧,现在我看到了问题:self.view.backgroundColor=[UIColor-WithPatternImage:[UIImage ImageName:@“karo_iphone.png”];是否有其他方法可以设置没有图案但具有正确比例的视图背景色?