iPhone Landscape FAQ and Solutions

后端 未结 6 1666
难免孤独
难免孤独 2020-11-27 11:19

There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotatio

6条回答
  •  醉梦人生
    2020-11-27 11:46

    For the second bullet point, if you want to use pushViewController to go from Portrait-only to Landscape-only view, one simple hack I found is to put the following code into your pushed controller's viewDidLoad:

    UIViewController *viewController = [[UIViewController alloc] init];
    [self presentModalViewController:viewController animated:NO];
    [self dismissModalViewControllerAnimated:NO];
    [viewController release];
    

提交回复
热议问题