【问题标题】:real Device orientation even on locked UIView [duplicate]即使在锁定的 UIView 上也是真实的设备方向 [重复]
【发布时间】:2013-03-28 10:20:40
【问题描述】:

即使在锁定的 UIView 上,我如何才能找出真正的 iOS 设备方向(不是 UIView 方向)?

【问题讨论】:

    标签: objective-c device-orientation


    【解决方案1】:

    它可能会对你有所帮助。

    UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];
    

    【讨论】:

      猜你喜欢
      • 2018-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-09
      • 1970-01-01
      • 2015-11-13
      相关资源
      最近更新 更多