【问题标题】:Changing UIImage when device orientation change设备方向更改时更改 UIImage
【发布时间】:2011-03-27 16:13:49
【问题描述】:

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

【问题讨论】:

  • 你的意思是不同viewController的不同方向的背景图片?

标签: iphone objective-c cocoa-touch ios uiimage


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    你可以解决这个问题

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多