// 先可通过UIApplication的setStatusBarOrientation方法更改状态条方向

// 然后以下代码实现强制触发shouldAutorotateToInterfaceOrientation

UIWindow *window = [[UIApplication shareApplication] keyWindow];
UIView *view = [window.subviews objectAtIndex:0];
[view removeFromSuperview];
[window addSubview:view];

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
猜你喜欢
  • 2021-10-07
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-03-01
相关资源
相似解决方案