相关文章推荐
温柔的电梯  ·  Parameters and ...·  1 年前    · 
温柔的保温杯  ·  Java ...·  2 年前    · 
心软的柿子  ·  Android 9.0 ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I have to show the data in modalViewController iPad . I have to present the viewController2 from viewController1 as ModalView for full screen . The viewController1 is in UITabbarController , the viewController2 should be hide the tabBar. So, i used this code to show the viewController2 from viewController1,

UIViewController *viewController2=[[UIViewController alloc] init];        
viewController2.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentModalViewController: viewController2 animated:YES];

When i call this viewController2 in Landscape mode, the viewController shows half of the screen in viewController1. And also, the simulator automatically change to Portrait and automatically return to Landscape mode. What is the problem in this? Can anyone please help me to find the solution? Thanks in advance.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.