How to restrict my app to landscape mode?
问题 I have my iPad application created using the SplitView template. I wonder what is the best way to restrict my application to landscape mode? I have tried overriding shouldAutorotateToInterfaceOrientation: method in DetailViewController.m - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsLandscape(interfaceOrientation); } but 4.2 GM is still buggy and it fails to show the controller view. What other choices do I have?