修改屏幕的旋转方向,使用与IPHONE以及IPad

// Override to allow orientations other than the default portrait orientation.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{

    return (interfaceOrientation==UIInterfaceOrientationLandscapeLeft || interfaceOrientation==UIInterfaceOrientationLandscapeRight);

}

THE END !

原文地址:https://www.cnblogs.com/xingchen/p/2151486.html