屏幕旋转

// ios 5、6都有这个方法

- (BOOL)shouldAutorotate{

    returnYES;

}

//ios6有效 

- (NSUInteger)supportedInterfaceOrientations{

    returnUIInterfaceOrientationMaskLandscape;

}

 

//ios5有效 

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{

        return ((toInterfaceOrientation==UIInterfaceOrientationLandscapeLeft)||(toInterfaceOrientation==UIInterfaceOrientationLandscapeRight));

}

相关文章:

  • 2021-05-31
  • 2022-02-09
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-09-22
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-02-11
相关资源
相似解决方案