First supported the interface orientations option in the plist file leaves only one portrait
The screen forces a horizontal screen using the following code
Self.navigationController.view.transform = Cgaffinetransformmakerotation (M_PI/2);
Self.navigationController.view.frame = CGRectMake (0, 0, screen_width, screen_height);
[[UIApplication sharedapplication] setstatusbarhidden:yes];
Return to normal vertical display (added in viewwilldisappear)
Self.navigationController.view.transform = cgaffinetransformidentity;
Self.navigationController.view.frame = [UIScreen mainscreen].bounds;
[[UIApplication sharedapplication] setstatusbarhidden:no];
The Statusbarorientation property in UIApplication has not been used in iOS 9 to hide the status bar directly from pages that require a horizontal screen in the project.
Resources reprinted from: http://www.cnblogs.com/jiackyan/p/3382734.html
IOS 9 Force Horizontal screen