在.m文件中修改方法 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

 默认为竖屏:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{
    return (interfaceOrientation != UIInterfaceOrientationPortrait);//竖屏

修改后为: 

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);//不支持倒置竖屏
}

相关文章:

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