【问题标题】:Don't autorotate view controller, but show UIAlertView rotated不要自动旋转视图控制器,但显示 UIAlertView 旋转
【发布时间】:2011-09-18 16:14:04
【问题描述】:

是否可以在UIViewController 中显示旋转到设备当前方向的UIAlertView,在shouldAutorotateToInterfaceOrientation: 中始终返回NO

【问题讨论】:

    标签: iphone ios ipad uialertview device-orientation


    【解决方案1】:

    您可以在显示后根据设备的方向旋转视图,使用以下方法:

    alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
    

    【讨论】:

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