自动旋转问题

| 我想在应用程序中自动旋转,但是有一个问题,纵向模式下的背景与横向模式下的背景不同。 请问有人可以给我一个简短的例子来解决这个问题吗? 提前致谢     
已邀请:
        实施方法
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
在包含背景的ViewController中。在此ViewController上查询interfaceOrientation属性以找出当前方向,并根据该值(UIInterfaceOrientation类型)设置背景。     

要回复问题请先登录注册