Iphone 当设备方向更改时更改UIImage

Iphone 当设备方向更改时更改UIImage,iphone,objective-c,cocoa-touch,ios,uiimage,Iphone,Objective C,Cocoa Touch,Ios,Uiimage,当设备方向改变时,如何更改背景图像?在UIViewController的WillAnimateRotationInterfaceOrientation:duration:方法中更改图像。您可以在 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 您的意思是不同方向的不同viewController的背景图像?

当设备方向改变时,如何更改背景图像?

在UIViewController的
WillAnimateRotationInterfaceOrientation:duration:
方法中更改图像。

您可以在

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

您的意思是不同方向的不同viewController的背景图像?